help with OnPlayerKetState errors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help with OnPlayerKetState errors (
/showthread.php?tid=281909)
help with OnPlayerKetState errors -
[EDT]AmanSingh123 - 08.09.2011
here the whole of my on player key state......
http://pastebin.com/CGFBgVYp
and here are the errors
pawn Код:
C:\Users\Aman\Desktop\GTA\its a server\windows\gamemodes\elitedrift.pwn(4092) : warning 225: unreachable code
C:\Users\Aman\Desktop\GTA\its a server\windows\gamemodes\elitedrift.pwn(4095) : error 017: undefined symbol "playerid"
C:\Users\Aman\Desktop\GTA\its a server\windows\gamemodes\elitedrift.pwn(4097) : error 017: undefined symbol "playerid"
C:\Users\Aman\Desktop\GTA\its a server\windows\gamemodes\elitedrift.pwn(4099) : error 017: undefined symbol "newkeys"
C:\Users\Aman\Desktop\GTA\its a server\windows\gamemodes\elitedrift.pwn(4105) : error 017: undefined symbol "playerid"
C:\Users\Aman\Desktop\GTA\its a server\windows\gamemodes\elitedrift.pwn(4106) : error 017: undefined symbol "playerid"
here are the error lines
pawn Код:
{ //line 4092
new model, vehicleid = GetPlayerVehicleID(playerid); //line 4095
if(IsPlayerInAnyVehicle(playerid)) //line 4097
if(PRESSED(KEY_SECONDARY_ATTACK)) //line 4099
SetPlayerHealth(playerid, 0); //line 4105
SendClientMessage(playerid, -1, "You have been killed because you dmed"); //line 4106
*also im not a good scripter* lol...
Re: help with OnPlayerKetState errors -
MadeMan - 08.09.2011
Did you use DeAMX to get this script?
Re: help with OnPlayerKetState errors -
Dragony92 - 08.09.2011
Put this lines in public OnPlayerKeyStateChange
pawn Код:
{ //line 4092
new model, vehicleid = GetPlayerVehicleID(playerid); //line 4095
if(IsPlayerInAnyVehicle(playerid)) //line 4097
if(PRESSED(KEY_SECONDARY_ATTACK)) //line 4099
SetPlayerHealth(playerid, 0); //line 4105
SendClientMessage(playerid, -1, "You have been killed because you dmed")