06.06.2013, 07:15
Hello,
i got some errors , i wish someone help.
this is the Whole GM: http://pastebin.com/MFE9bj0s (Please Take a Look at this...)
i got these Errors:
And What im doing wrong here:
i got some errors , i wish someone help.
this is the Whole GM: http://pastebin.com/MFE9bj0s (Please Take a Look at this...)
i got these Errors:
Код:
C:\Documents and Settings\ShayaN\Desktop\0.3X ServeR\gamemodes\test.pwn(76) : error 029: invalid expression, assumed zero C:\Documents and Settings\ShayaN\Desktop\0.3X ServeR\gamemodes\test.pwn(87) : error 029: invalid expression, assumed zero C:\Documents and Settings\ShayaN\Desktop\0.3X ServeR\gamemodes\test.pwn(98) : error 002: only a single statement (or expression) can follow each "case" C:\Documents and Settings\ShayaN\Desktop\0.3X ServeR\gamemodes\test.pwn(98 -- 99) : error 028: invalid subscript (not an array or too many subscripts): "playerid" C:\Documents and Settings\ShayaN\Desktop\0.3X ServeR\gamemodes\test.pwn(98 -- 100) : error 001: expected token: "}", but found "if" C:\Documents and Settings\ShayaN\Desktop\0.3X ServeR\gamemodes\test.pwn(98 -- 100) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.
pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
switch(classid)
{
case 0, 1:
{
gTeam[playerid] = TEAM_ASSASINS; // >>> error 029: invalid expression, assumed zero
GameTextForPlayer(playerid, "~r~ASSASINS", 3000, 4);
SetPlayerPos(playerid, 2180.4934, 1676.8185, 11.1197); // Assasins Spawn Pos
SetPlayerInterior(playerid, 0);
SetPlayerCameraPos(playerid, 2189.2839, 1677.0737, 11.1197); // Assasins Spawn CameraPos
SetPlayerCameraLookAt(playerid, 2180.4934, 1676.8185, 11.1197); // Assasins Spawn CameraLookAt
SetPlayerColor(playerid, RED);
return 1;
}
case 2, 3:
{
gTeam[playerid] = TEAM_POLICE; // >>> error 029: invalid expression, assumed zero
GameTextForPlayer(playerid, "~b~POLICE", 3000, 4);
SetPlayerPos(playerid, 2353.5962, 2405.6279, 10.8203); // Police Spawn Pos
SetPlayerInterior(playerid, 0);
SetPlayerCameraPos(playerid, 2361.3018, 2405.6365, 10.8203); // Police Spawn CameraPos
SetPlayerCameraLookAt(playerid, 2353.5962, 2405.6279, 10.8203); // Police Spawn CameraLookAt
SetPlayerColor(playerid, BLUE);
return 1;
}