Alles anzeigen
switch(GetPVarInt(playerid,"Fraktion"))
{
case 0:{}
case 1:{SetPlayerPos(playerid,lspdspawn);SetPlayerColor(playerid,BLAU);GivePlayerWeapon(playerid,41,500);GivePlayerWeapon(playerid,24,200);GivePlayerWeapon(playerid,3,1);GivePlayerWeapon(playerid,25,200);GivePlayerWeapon(playerid,31,250);GivePlayerWeapon(playerid,34,50);}
case 2:{SetPlayerPos(playerid,ordnungsamtspawn);SetPlayerColor(playerid,BABYBLAU);GivePlayerWeapon(playerid,41,500);}
case 3:{SetPlayerPos(playerid,sanitäterspawn);SetPlayerColor(playerid,ROT);GivePlayerWeapon(playerid,41,500);}
case 4:{SetPlayerPos(playerid,grovestreetspawn);GivePlayerWeapon(playerid,24,100);GivePlayerWeapon(playerid,1,1);GivePlayerWeapon(playerid,25,40);GivePlayerWeapon(playerid,30,100);}
case 5:{SetPlayerPos(playerid,yakuzaspawn);GivePlayerWeapon(playerid,24,100);GivePlayerWeapon(playerid,8,1);GivePlayerWeapon(playerid,25,40);GivePlayerWeapon(playerid,30,100);}
}
return 1;
So sollte es klappen, lag am GivePlayerWeapon; du kannst nicht mehrere Waffen in einem "GivePlayerWeapon" vergeben.
Alles anzeigen
switch(GetPVarInt(playerid,"Fraktion"))
{
case 0:{}
case 1:{SetPlayerPos(playerid,lspdspawn);SetPlayerColor(playerid,BLAU);GivePlayerWeapon(playerid,41,500);GivePlayerWeapon(playerid,24,200);GivePlayerWeapon(playerid,3,1);GivePlayerWeapon(playerid,25,200);GivePlayerWeapon(playerid,31,250);GivePlayerWeapon(playerid,34,50);}
case 2:{SetPlayerPos(playerid,ordnungsamtspawn);SetPlayerColor(playerid,BABYBLAU);GivePlayerWeapon(playerid,41,500);}
case 3:{SetPlayerPos(playerid,sanitäterspawn);SetPlayerColor(playerid,ROT);GivePlayerWeapon(playerid,41,500);}
case 4:{SetPlayerPos(playerid,grovestreetspawn);GivePlayerWeapon(playerid,24,100);GivePlayerWeapon(playerid,1,1);GivePlayerWeapon(playerid,25,40);GivePlayerWeapon(playerid,30,100);}
case 5:{SetPlayerPos(playerid,yakuzaspawn);GivePlayerWeapon(playerid,24,100);GivePlayerWeapon(playerid,8,1);GivePlayerWeapon(playerid,25,40);GivePlayerWeapon(playerid,30,100);}
}
return 1;
So sollte es klappen, lag am GivePlayerWeapon; du kannst nicht mehrere Waffen in einem "GivePlayerWeapon" vergeben.
Hab 2 error´s :
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(78) : warning 217: loose indentation
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(79) : warning 217: loose indentation
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(85) : warning 217: loose indentation
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(237) : warning 235: public function lacks forward declaration (symbol "tkick")
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(258) : warning 225: unreachable code
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(260) : warning 202: number of arguments does not match definition
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(258) : warning 204: symbol is assigned a value that is never used: "mms"
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(258) : warning 204: symbol is assigned a value that is never used: "reason"
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(316) : error 029: invalid expression, assumed zero
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(316) : warning 202: number of arguments does not match definition
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(316) : error 001: expected token: ",", but found ";"
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(322) : warning 225: unreachable code
C:\Users\Patrick\Desktop\Server\gamemodes\IRP-City.pwn(686) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Alles anzeigen