help with OnPlayerKetState errors
#1

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...
Reply
#2

Did you use DeAMX to get this script?
Reply
#3

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")
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)