[SOLVED]Help[SOLVED]
#1

hi im trying to make it so that in OnPlayerUpdate it checks if the players z pos is 0 i get this
pawn Код:
C:\Users\Windows Vista\sampR4\gamemodes\Sumo.pwn(346) : error 036: empty statement
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
this the code i got
pawn Код:
public OnPlayerUpdate(playerid)
{
    new Float:x;
    new Float:y;
    new Float:z;
    GetPlayerPos(playerid, x, y, z);
    if(z == 0);
    new iRandom = random(sizeof(SumoRandCars));
    new iRandColors = random(sizeof(SumoRandColors));
    new VehID[256];
    VehID[playerid] = CreateVehicle(SumoRandCars[iRandom][0], 4117.751953125,-1185.1917724609,22,270.27026367188,SumoRandColors[iRandColors][0],SumoRandColors[iRandColors][0], 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999);
    PutPlayerInVehicle(playerid, VehID[playerid], 0);
    SendClientMessageToAll(GREEN, "[Respawn] Has Been Respawned![Reason: Fell Off]");
    return 1;
}
the line 346 is
pawn Код:
if(z == 0);
Thanks, Cody Beer
Reply


Messages In This Thread
[SOLVED]Help[SOLVED] - by [WF]Demon - 19.03.2010, 06:08
Re: Help - by cessil - 19.03.2010, 06:18
Re: Help - by [WF]Demon - 19.03.2010, 07:17
Re: Help - by sushihusi - 19.03.2010, 07:32
Re: Help - by sushihusi - 19.03.2010, 07:35
Re: Help - by Rzzr - 19.03.2010, 07:48
Re: Help - by [WF]Demon - 19.03.2010, 08:19

Forum Jump:


Users browsing this thread: 3 Guest(s)