new Float:Shipdm[][4] ={{-2472.7549,1549.2173,33.2273},{-2437.9202,1561.8243,17.3358},{-2377.1072,1548.6382,2.1172},{-2316.6765,1541.7928,18.7734}};new Float:m4dm[][5] ={{210.7491,147.1401,1003.0234},{189.1708,158.3184,1003.0234},{223.6001,186.7655,1003.0313},{253.5943,189.6686,1008.1719},{297.5291,186.1748,1007.1719}};new Float:minidm[][6] ={{2612.7781,2721.6843,36.5386},{2595.6309,2768.7861,23.8222},{2640.8472,2775.3394,23.8222},{2650.5364,2807.3479,36.3222},{2577.2959,2826.3767,27.8203},{2578.8538,2827.1208,10.8203}};public OnPlayerSpawn(playerid){switch(dmben[playerid]){case 0:{new rand = random(sizeof(Shipdm));SetPlayerPos(playerid,Shipdm[rand][0],Shipdm[rand][1],Shipdm[rand][2]);GivePlayerWeapon(playerid,4,1);GivePlayerWeapon(playerid,24,55555);GivePlayerWeapon(playerid,25,55555);GivePlayerWeapon(playerid,31,200);GivePlayerWeapon(playerid,34,55555);SetPlayerVirtualWorld(playerid,1);SetPlayerInterior(playerid, 0);}case 1:{new rand2 = random(sizeof(m4dm));SetPlayerPos(playerid,m4dm[rand2][0],m4dm[rand2][1],m4dm[rand2][2]);SetPlayerInterior(playerid,3);GivePlayerWeapon(playerid,31,10000);}case 2:{new rand3 = random(sizeof(minidm));SetPlayerPos(playerid,minidm[rand3][0],minidm[rand3][1],minidm[rand3][2]);GivePlayerWeapon(playerid,38,99999);dmben[playerid]= 1;SetPlayerInterior(playerid, 0);}}return 1;}CMD:shipdm(playerid,params[]){new rand = random(sizeof(Shipdm));SetPlayerPos(playerid,Shipdm[rand][0],Shipdm[rand][1],Shipdm[rand][2]);GivePlayerWeapon(playerid,4,1);GivePlayerWeapon(playerid,24,55555);GivePlayerWeapon(playerid,25,55555);GivePlayerWeapon(playerid,31,200);GivePlayerWeapon(playerid,34,55555);SetPlayerArmour(playerid,0);SetPlayerHealth(playerid,90);SetPlayerVirtualWorld(playerid,1);dmben[playerid]= 1;return 1;}CMD:m4dm(playerid){new rand2 = random(sizeof(m4dm));SetPlayerPos(playerid,m4dm[rand2][0],m4dm[rand2][1],m4dm[rand2][2]);SetPlayerInterior(playerid,3);GivePlayerWeapon(playerid,31,10000);dmben[playerid]= 1;return 1;}CMD:minigundm(playerid){new rand3 = random(sizeof(minidm));SetPlayerPos(playerid,minidm[rand3][0],minidm[rand3][1],minidm[rand3][2]);GivePlayerWeapon(playerid,38,99999);dmben[playerid]= 1;SetPlayerInterior(playerid,0);return 1;}
default: // Alap spawn funkciók. Amikor a játékos NINCS DM-BEN ÉS ÚGY SPAWNOL {// Ide kell írni ami alap ból az OnPlayerSpawnnál volt GivePlayerMoney(playerid,100); GivePlayerWeapon(playerid,1,1); SetPlayerVirtualWorld(playerid,0); // Vissz*rakás az alap VW-be FONTOS new rand = random(sizeof(RandomSpawn)); SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]); SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]); }
public OnPlayerConnect(playerid){dmben[playerid] = 0;return 1;}
public OnPlayerSpawn(playerid){switch(dmben[playerid]){case 0:{new rand = random(sizeof(Shipdm));SetPlayerPos(playerid,Shipdm[rand][0],Shipdm[rand][1],Shipdm[rand][2]);ResetPlayerWeapons(playerid);GivePlayerWeapon(playerid,4,1);GivePlayerWeapon(playerid,24,55555);GivePlayerWeapon(playerid,25,55555);GivePlayerWeapon(playerid,31,200);GivePlayerWeapon(playerid,34,55555);SetPlayerVirtualWorld(playerid,1);SetPlayerInterior(playerid, 0);}case 1:{new rand2 = random(sizeof(m4dm));SetPlayerPos(playerid,m4dm[rand2][0],m4dm[rand2][1],m4dm[rand2][2]);ResetPlayerWeapons(playerid);SetPlayerInterior(playerid,3);GivePlayerWeapon(playerid,31,10000);}case 2:{new rand3 = random(sizeof(minidm));SetPlayerPos(playerid,minidm[rand3][0],minidm[rand3][1],minidm[rand3][2]);ResetPlayerWeapons(playerid);GivePlayerWeapon(playerid,38,99999);dmben[playerid]= 1;SetPlayerInterior(playerid, 0);}default: // Alap spawn funkciók. Amikor a játékos NINCS DM-BEN ÉS ÚGY SPAWNOL{TextDrawShowForPlayer(playerid,txtTimeDisp);gettime(hour, minute);SetPlayerTime(playerid,hour,minute);new randszin = random(sizeof(szinek));SetPlayerColor(playerid, szinek[randszin]);SetPlayerPos(playerid,-330.3562,1529.4213,75.3594);SetPlayerInterior(playerid,0);SetPlayerHealth(playerid,100);SetPlayerArmour(playerid,100);TextDrawShowForPlayer(playerid,DW);SetPlayerVirtualWorld(playerid,0);GivePlayerMoney(playerid,100);GivePlayerWeapon(playerid,1,1);new rand = random(sizeof(RandomSpawn));SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]);}}return 1;}
C:\\Documents and Settings\\Mucik\\Asztal\\GTA\\samp03e_svr_win32\\gamemodes\\DriftWorld.pwn(289) : error 020: invalid symbol name \"\"C:\\Documents and Settings\\Mucik\\Asztal\\GTA\\samp03e_svr_win32\\gamemodes\\DriftWorld.pwn(290) : error 029: invalid expression, assumed zeroC:\\Documents and Settings\\Mucik\\Asztal\\GTA\\samp03e_svr_win32\\gamemodes\\DriftWorld.pwn(290) : warning 215: expression has no effectC:\\Documents and Settings\\Mucik\\Asztal\\GTA\\samp03e_svr_win32\\gamemodes\\DriftWorld.pwn(290) : error 001: expected token: \";\", but found \"]\"C:\\Documents and Settings\\Mucik\\Asztal\\GTA\\samp03e_svr_win32\\gamemodes\\DriftWorld.pwn(290) : error 029: invalid expression, assumed zeroC:\\Documents and Settings\\Mucik\\Asztal\\GTA\\samp03e_svr_win32\\gamemodes\\DriftWorld.pwn(290) : fatal error 107: too many error messages on one line
289.new rand = random(sizeof(RandomSpawn));290.SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);