Errors, help me :)!
#1

First, errors.

Quote:

error 012: invalid function call, not a valid address
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

Line of errors,

Quote:

{
new string[128];
new newcar = GetPlayerVehicleID(playerid);
if(NOPTrigger[playerid] >= MAX_NOP_WARNINGS) { return 1; }
NOPTrigger[playerid]++;
RemovePlayerFromVehicle(playerid);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z+2);
NOPCheck(playerid);
if(NOPTrigger[playerid] > 1)
{

Reply
#2

Quote:
Originally Posted by ProjectRP
Посмотреть сообщение
First, errors.



Line of errors,
Can you show me/us the "NOPCheck(playerid)" function please?
The script says it's not created, so that should be your issue.

Best regards,
Jesse
Reply
#3

What, do you mean I'm kinda new to scripting, I added new NOPCheck;
Reply
#4

So can anyone help me out?
Reply
#5

Where's the closing brace for the code in the OP ?!
Reply
#6

Sorry, I don't understand what you said?
Reply
#7

Try this
pawn Код:
{
new string[128];
new newcar = GetPlayerVehicleID(playerid);
if(NOPTrigger[playerid] >= MAX_NOP_WARNINGS) { return 1; }
NOPTrigger[playerid]++;
RemovePlayerFromVehicle(playerid);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z+2);
NOPCheck(playerid);
if(NOPTrigger[playerid] > 1)
}
Reply
#8

I get, this error now

Quote:

(3176) : error 017: undefined symbol "Random"
(3180) : error 017: undefined symbol "Random"
(3190) : error 017: undefined symbol "GetPlayerNameEx"
(3197) : error 017: undefined symbol "GetPlayerNameEx"
(3204) : error 017: undefined symbol "GetPlayerNameEx"
(3211) : error 017: undefined symbol "GetPlayerNameEx"
(321 : error 017: undefined symbol "GetPlayerNameEx"
(3232) : error 017: undefined symbol "GetPlayerNameEx"
(3239) : error 017: undefined symbol "GetPlayerNameEx"
(3245) : error 017: undefined symbol "GetPlayerNameEx"
(3247) : error 017: undefined symbol "GetPlayerNameEx"
(3252) : error 017: undefined symbol "GetPlayerNameEx"
(325 : error 017: undefined symbol "Random"
(3264) : error 017: undefined symbol "GetPlayerNameEx"
(3266) : error 017: undefined symbol "GetPlayerNameEx"
(3273) : error 017: undefined symbol "GetPlayerNameEx"
(3280) : error 017: undefined symbol "GetPlayerNameEx"
(328 : error 017: undefined symbol "GetPlayerNameEx"
(3292) : error 017: undefined symbol "GetPlayerNameEx"
(3294) : error 017: undefined symbol "GetPlayerNameEx"
(3303) : error 017: undefined symbol "GetPlayerNameEx"
(3311) : error 017: undefined symbol "GetPlayerNameEx"
(3313) : error 017: undefined symbol "GetPlayerNameEx"
(3315) : error 017: undefined symbol "GetPlayerNameEx"
(3322) : error 017: undefined symbol "Random"
(332 : error 017: undefined symbol "GetPlayerNameEx"

OKAY I FIXED THE 'GetPlayerName' but I need help on the 'Random'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)