24.08.2010, 16:25
It's an erro which i don't understand.
My script:
The error:
My script:
PHP код:
if (strcmp(cmd, "/goto", true) == 0)
{
new tmp[30];
tmp = strtok(cmdtext, idx);
new otherid;
otherid = strval(tmp);
if(UserStats[playerid][Admin] >= 2)
{
if(IsPlayerConnected(otherid) && otherid != INVALID_PLAYER_ID && otherid != playerid)
{
new Float:posx, Float:posy, Float:posz;
GetPlayerPos(otherid,posx,posy,posz);
SetPlayerInterior(playerid,GetPlayerInterior(otherid));
SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(otherid));
if (GetPlayerState(playerid) == 2)
{
new car = GetPlayerVehicleID(playerid);
SetVehiclePos(car, posx, posy+4, posz);
}
else { SetPlayerPos(playerid,posx,posy+2, posz); } } // When i delete one of this brackets I get much errors.. You known: The bracket-error :(
else
{ SendClientMessage(playerid, COLOR_RED, "Fehler: Spieler nicht gefunden oder eigene ID!"); }
else // Here ist the error!
{ SendClientMessage(playerid, COLOR_RED, "Du bist kein Administrator!"); }
}
return 1;
}
Код:
***********************(289) : error 029: invalid expression, assumed zero