Quellcode
1
2
3
4
5
6
7
8
9
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0: gTeam[playerid] = TEAM_ZOMBIES;SetPlayerSkin(playerid,1);SetPlayerSkin(playerid,33);SetPlayerSkin(playerid,78);SetPlayerSkin(playerid,264);SetPlayerColor(playerid,COLOR_ZOMBIE);GivePlayerWeapon(playerid,4,1);GivePlayerWeapon(playerid,9,1));
case 1: gTeam[playerid] = TEAM_HUMANS;SetPlayerSkin(playerid,188) ;SetPlayerSkin(playerid,206);SetPlayerSkin(playerid,240);SetPlayerSkin(playerid,241);SetPlayerColor(playerid,COLOR_HUMAN);GivePlayerWeapon(playerid,6,1);GivePlayerWeapon(playerid,22,100000));
}
return 1;
}
(33) : error 002: only a single statement (or expression) can follow each "case"
(33) : warning 215: expression has no effect
(33) : error 001: expected token: ";", but found ")"
(33) : error 029: invalid expression, assumed zero
(33) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
bei gTeam = TEAM_ZOMBIES ist zeile 33 ich hoffe ihr könnt mir helfen, aber auch sagen woran es lag bitte bitte ! ich möchte auch dazulernen