17.06.2011, 23:43
Well this is my code
And ya' i got 5 error
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { new vehicleid = GetPlayerVehicleID(playerid); if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT) { if(vehicleid == valo) { if(strcmp(PlayerName(playerid)," Valo_Xhan", true) != 0) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_GREEN, "This is Valo vehicle!") } } stock PlayerName(playerid) { new PlrName[MAX_PLAYER_NAME]; GetPlayerName(playerid,PlrName,sizeof(PlrName)); return PlrName; } return 1; } }
Код:
D:\Test server\filterscripts\Valox.pwn(118) : error 017: undefined symbol "PlayerName" D:\Test server\filterscripts\Valox.pwn(121) : error 029: invalid expression, assumed zero D:\Test server\filterscripts\Valox.pwn(121) : warning 215: expression has no effect D:\Test server\filterscripts\Valox.pwn(121) : error 001: expected token: ";", but found ")" D:\Test server\filterscripts\Valox.pwn(121) : error 029: invalid expression, assumed zero D:\Test server\filterscripts\Valox.pwn(121) : fatal error 107: too many error messages on one line