Simple Error Help! :c
#1

Hi, I was making a rent system and I get this error I do not know about: c


PHP код:
//Errors
D:\NICEPROYECT\gamemodes\Nice.pwn(316) : error 012invalid function callnot a valid address
D
:\NICEPROYECT\gamemodes\Nice.pwn(316) : error 001expected token";"but found ")"
D:\NICEPROYECT\gamemodes\Nice.pwn(316) : error 029invalid expressionassumed zero
D
:\NICEPROYECT\gamemodes\Nice.pwn(316) : fatal error 107too many error messages on one line
//Line
if(SRent(GetPlayerVehicleID(playerid)) 
Reply
#2

You are missing a bracket at the end of the line
Reply
#3

Use this code:



if(SRent(GetPlayerVehicleID(playerid));
Reply
#4

Can you please provide the rest of the code at that part, sometimes the compiler says the error is in a line number, but the true error isn't there, happened to me multiple times.
Reply
#5

Quote:
Originally Posted by LOLITO
Посмотреть сообщение
Hi, I was making a rent system and I get this error I do not know about: c


PHP код:
//Errors
D:\NICEPROYECT\gamemodes\Nice.pwn(316) : error 012invalid function callnot a valid address
D
:\NICEPROYECT\gamemodes\Nice.pwn(316) : error 001expected token";"but found ")"
D:\NICEPROYECT\gamemodes\Nice.pwn(316) : error 029invalid expressionassumed zero
D
:\NICEPROYECT\gamemodes\Nice.pwn(316) : fatal error 107too many error messages on one line
//Line
if(SRent(GetPlayerVehicleID(playerid)) 
PHP код:
if(SRent(GetPlayerVehicleID(playerid))) 
Reply
#6

Quote:
Originally Posted by TroS
Посмотреть сообщение
Use this code:



if(SRent(GetPlayerVehicleID(playerid));
If statements don't use ";"
Reply
#7

Quote:
Originally Posted by Lokii
Посмотреть сообщение
PHP код:
if(SRent(GetPlayerVehicleID(playerid))) 
What is written after the if statement? I need the next 10-15 lines if possible to check on your error.
Reply
#8

Quote:
Originally Posted by EgyptForLife
Посмотреть сообщение
What is written after the if statement? I need the next 10-15 lines if possible to check on your error.
Thats the fix
All he had to do is add another ")"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)