Reaper792
Ladendieb
|
|
Registrierung: |
18.05.2012, 03:39 |
Beiträge: |
2
|
|
also das soll ein gamemode werden: Dabei krieg ich den error: : error 001: expected token: "#endif", but found "-end of file-" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error. ------------------------------------------------------------------------------------------------
C++: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285
| #include <a_samp> #include <dini>
#if defined ROT 0xFF0000FF
#if defined DIALOG_REGISTER 1 #if defined DIALOG_LOGIN 2
public OnGameModeInit() {
UsePlayerPedAnims(); SetGameModeText("TestMode"); AddPlayerClass(0,2110.0752,1286.8900,10.8203,89.1425,0,0,0,0,0,0); // position AddPlayerClass(1,2110.0752,1286.8900,10.8203,89.1425,25,30,0,0,0,0); // position
AddStaticVehicle(457,2075.3411,1275.4913,10.2987,46.7811,126,0); // caddy1 AddStaticVehicle(457,2075.4219,1277.9918,10.2988,44.9555,126,0); // caddy2 AddStaticVehicle(457,2075.3411,1280.4240,10.2987,44.2795,126,0); // caddy3 AddStaticVehicle(457,2075.4653,1282.7317,10.2987,45.3050,126,0); // caddy4 AddStaticVehicle(457,2075.5581,1285.1198,10.2987,45.7110,18,1); // caddy5 AddStaticVehicle(457,2075.2383,1287.9637,10.2987,44.7977,18,1); // caddy6 AddStaticVehicle(457,2075.2224,1290.5472,10.2987,48.3737,18,1); // caddy7 AddStaticVehicle(457,2075.2334,1292.9561,10.2987,44.9193,18,1); // caddy8 AddStaticVehicle(457,2075.4568,1295.2563,10.2987,43.3978,18,1); // caddy9 AddStaticVehicle(457,2075.4868,1297.7682,10.2995,42.9549,18,1); // caddy10 AddStaticVehicle(457,2075.2437,1300.5338,10.2987,42.3940,18,1); // caddy11 AddStaticVehicle(457,2075.2913,1302.8705,10.2987,45.4409,18,1); // caddy12 return 1; }
public OnGameModeExit() { return 1; }
public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid,2110.0752,1286.8900,10.8203); SetPlayerFacingAngle(playerid,89.1425); SetPlayerCameraPos(playerid,2108.2207,1286.9277,10.8203); SetPlayerCameraLookAt(playerid,2110.0752,1286.8900,10.8203); return 1; }
public OnPlayerConnect(playerid) { ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Gewünschtes Passwort eingeben.","Registrieren","Abbruch");
return 1; }
public OnPlayerDisconnect(playerid, reason) { return 1; }
public OnPlayerSpawn(playerid) { return 1; }
public OnPlayerDeath(playerid, killerid, reason) { return 1; }
public OnVehicleSpawn(vehicleid) { return 1; }
public OnVehicleDeath(vehicleid, killerid) { return 1; }
public OnPlayerText(playerid, text[]) { return 1; }
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext,"/grove",true)==0) { SetPlayerPos(playerid,2512.4294,-1673.2753,13.4955); SendClientMessage(playerid,0xFFFF00FF,"Grove Street, Home"); return 1; } if(strcmp(cmdtext,"/spawn",true)==0) { SetPlayerPos(playerid,2110.0752,1286.8900,10.8203); SendClientMessage(playerid,0xFFFF00FF,"Spawn"); return 1; } if(strcmp(cmdtext,"/lsairport",true)==0) { SetPlayerPos(playerid,1938.8967,-2363.9272,13.5469); SendClientMessage(playerid,0xFFFF00FF,"Los Santos Airport"); return 1; } if(strcmp(cmdtext,"/restart",true)==0) { SendRconCommand("gmx"); return 1; } if(strcmp(cmdtext,"/suicide",true)==0) { SetPlayerHealth(playerid,0); return 1; } return 0; }
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; }
public OnPlayerExitVehicle(playerid, vehicleid) { return 1; }
public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; }
public OnPlayerEnterCheckpoint(playerid) { return 1; }
public OnPlayerLeaveCheckpoint(playerid) { return 1; }
public OnPlayerEnterRaceCheckpoint(playerid) { return 1; }
public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; }
public OnRconCommand(cmd[]) { return 1; }
public OnPlayerRequestSpawn(playerid) { return 1; }
public OnObjectMoved(objectid) { return 1; }
public OnPlayerObjectMoved(playerid, objectid) { return 1; }
public OnPlayerPickUpPickup(playerid, pickupid) { return 1; }
public OnVehicleMod(playerid, vehicleid, componentid) { return 1; }
public OnVehiclePaintjob(playerid, vehicleid, paintjobid) { return 1; }
public OnVehicleRespray(playerid, vehicleid, color1, color2) { return 1; }
public OnPlayerSelectedMenuRow(playerid, row) { return 1; }
public OnPlayerExitedMenu(playerid) { return 1; }
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) { return 1; }
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { return 1; }
public OnRconLoginAttempt(ip[], password[], success) { return 1; }
public OnPlayerUpdate(playerid) { return 1; }
public OnPlayerStreamIn(playerid, forplayerid) { return 1; }
public OnPlayerStreamOut(playerid, forplayerid) { return 1; }
public OnVehicleStreamIn(vehicleid, forplayerid) { return 1; }
public OnVehicleStreamOut(vehicleid, forplayerid) { return 1; }
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid==DIALOG_REGISTER) { if(response==0) { SendClientMessage(playerid,ROT,"Du hast den Vorgang abgebrochen!"); Kick(playerid); return 1; } if(response==1) { if(!strlen(inputtext)) { SendClientMessage(playerid,ROT,"Das Passwort war zu kurz!" ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Gewünschtes Passwort eingeben.","Registrieren","Abbruch"); return 1; } else { Register(playerid,inputtext); return 1; } } } return 1; }
public OnPlayerClickPlayer(playerid, clickedplayerid, source) { return 1; }
stock Register(playerid,key[]) { new Spielerdatei[64]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name); dini_Create(Spielerdatei); dini_Set(Spielerdatei,"Passwort",key); SendClientMessage(playerid,ROT,"Erfolgreich registriert"); return 1; }
|
|
|