OnPlayerSpawn alatt van ugye a case 0: cuccnál ez:SetPlayerPos(playerid,0.0,0.0,3.5);Ez ezt írd át erre:switch(random(5)){case 0: SetPlayerPos(playerid,0.0,0.0,3.5);case 1; SetPlayerPos(playerid,0.0,0.0,3.5);//case 2:}
public OnPlayerSpawn(playerid){ switch(dmid[playerid]) { case 0: // 0-ás azonosítószámú dm zónához tartozó tevékenységek { switch(random(3)) { case 0: SetPlayerPos(playerid,0.0,0.0,3.5); case 1; SetPlayerPos(playerid,0.0,0.0,3.5); case 2: SetPlayerPos(playerid,0.0,0.0,3.5); } SetPlayerFacingAngle(playerid,90.0); // Játékos írányba állítása; elforgatás ResetPlayerWeapons(playerid); // fegyverek elvétele <- FONTOS GivePlayerWeapon(playerid,4,1); // Felfegyverzés GivePlayerWeapon(playerid,34,10); // Felfegyverzés SetPlayerVirtualWorld(playerid,dmid[playerid]); // áthelyezés mási VW-be } //case 1 stb ahogy a fõpostban van
public OnPlayerSpawn(playerid) { switch(dmid[playerid]) { case 0: { SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 0); SetPlayerPos(playerid,1777.3622,-1774.7927,52.4688); SetPlayerFacingAngle(playerid,90.0); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,26,1500); SetPlayerVirtualWorld(playerid,dmid[playerid]); } case 1: { { switch(random(6)) { case 0: SetPlayerPos(playerid,2614.9651,2708.6431,25.8222); case 1: SetPlayerPos(playerid,2591.8381,2699.1733,10.8203); case 2: SetPlayerPos(playerid,2671.5667,2818.5789,36.3222); case 3: SetPlayerPos(playerid,2544.7354,2800.0752,10.8203); case 4: SetPlayerPos(playerid,2607.7263,2809.6113,10.8203); case 5: SetPlayerPos(playerid,2647.5715,2804.6311,10.8203); } SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); SetPlayerFacingAngle(playerid,180.0); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,22,1900); GivePlayerWeapon(playerid,25,750); GivePlayerWeapon(playerid,29,1650); GivePlayerWeapon(playerid,30,1650); GivePlayerWeapon(playerid,34,60); GivePlayerWeapon(playerid,16,5); SetPlayerVirtualWorld(playerid,dmid[playerid]); } case 2: //Ez az 588-as sor { SetPlayerHealth(playerid, 50); SetPlayerArmour(playerid, 0); SetPlayerPos(playerid,2462.4910,2287.7676,91.6300); SetPlayerFacingAngle(playerid,110.0); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,10,1); SetPlayerVirtualWorld(playerid,dmid[playerid]); } default: { SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 0); new rand = random(sizeof(RandomSpawn)); SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); StopAudioStreamForPlayer (playerid); } }return 1;}
SZERVER\\gamemodes\\Bworld.pwn(588) : error 014: invalid statement; not in switchSZERVER\\gamemodes\\Bworld.pwn(588) : warning 215: expression has no effectSZERVER\\gamemodes\\Bworld.pwn(588) : error 001: expected token: \";\", but found \":\"SZERVER\\gamemodes\\Bworld.pwn(588) : error 029: invalid expression, assumed zeroSZERVER\\gamemodes\\Bworld.pwn(588) : fatal error 107: too many error messages on one line
case 1:{ {