15.11.2011, 12:22
Well guys according to blackworlf's map changing system tutorial what is wrong because it shows me 4 errors in the same line :P
here is the code :P
Note: line 1944 is this one
:
here is the code :P
pawn Код:
public Restart(playerid,classid)
{
//GameTextForPlayer(playerid, "if you been teleported,its working",5000,5);
switch (CurrentMap)
{
case 0:
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
switch (gTeam[i])
{
case 1:
{
SetPlayerPos(playerid, 716.8705,-2308.6211,107.9117);
}
case 2:
{
SetPlayerPos(playerid,684.1284,-2409.9363,107.1745);
}
}
}
CurrentMap = 1;
SendRconCommand("mapname cs_italy");
}
case 1:
{
if(IsPlayerConnected(i))
{
switch (gTeam[i])
{
case 1:
{
SetPlayerPos(playerid,4427.6431,-1640.7981,22.3554);
}
case 2:
{
SetPlayerPos(playerid, 4354.7001, -1682.3000, 25.5);
}
CurrentMap = 2;
SendRconCommand("mapname de_dust2");
}
}
}
}
return 1;
}
PHP код:
errors:
(1944) : error 014: invalid statement; not in switch
(1944) : warning 215: expression has no effect
(1944) : error 001: expected token: ";", but found ":"
(1944) : error 029: invalid expression, assumed zero
(1944) : 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.
:
pawn Код:
case 1:
{