Private car help
#1

i have a private car setup for a friend but im having problems
stock PlayerName(playerid)
{
new PlrName[MAX_PLAYER_NAME];
GetPlayerName(playerid,PlrName,sizeof(PlrName));
return PlrName;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new pid;
new vehicleid = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
{
if(vehicleid == xxannajpxx)
{
if(strcmp(PlayerName(playerid), "Anna_Cortez", true) != 0)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "You dare touch The car of Anna_Cortez? PERISH IN HELL!!! ");
GetPlayerPos(pid,x,y,z);
CreateExplosion(x,y,z,0,5.0);
SetPlayerHealth(playerid, 0);
}
}
return 1;
}



the errors are as followed:



C:\Documents and Settings\Majdi Khammash\Desktop\worlddm\gamemodes\fixed.pwn(855) : error 017: undefined symbol "x"
C:\Documents and Settings\Majdi Khammash\Desktop\worlddm\gamemodes\fixed.pwn(856) : error 017: undefined symbol "x"
C:\Documents and Settings\Majdi Khammash\Desktop\worlddm\gamemodes\fixed.pwn(859) : warning 217: loose indentation
C:\Documents and Settings\Majdi Khammash\Desktop\worlddm\gamemodes\fixed.pwn(861) : error 030: compound statement not closed at the end of file (started at line 845)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply


Messages In This Thread
Private car help - by farris - 07.09.2010, 22:51
Re: Private car help - by JamesC - 07.09.2010, 23:09
Re: Private car help - by farris - 07.09.2010, 23:10
Re: Private car help - by farris - 07.09.2010, 23:23
Re: Private car help - by JamesC - 07.09.2010, 23:26
Re: Private car help - by farris - 07.09.2010, 23:30

Forum Jump:


Users browsing this thread: 6 Guest(s)