19.03.2010, 06:08
hi im trying to make it so that in OnPlayerUpdate it checks if the players z pos is 0 i get this
this the code i got
the line 346 is
Thanks, Cody Beer
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.
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;
}
pawn Код:
if(z == 0);