Simple Error Help! :c - 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: Simple Error Help! :c (
/showthread.php?tid=654742)
Simple Error Help! :c -
LOLITO - 04.06.2018
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 012: invalid function call, not a valid address
D:\NICEPROYECT\gamemodes\Nice.pwn(316) : error 001: expected token: ";", but found ")"
D:\NICEPROYECT\gamemodes\Nice.pwn(316) : error 029: invalid expression, assumed zero
D:\NICEPROYECT\gamemodes\Nice.pwn(316) : fatal error 107: too many error messages on one line
//Line
if(SRent(GetPlayerVehicleID(playerid))
Re: Simple Error Help! :c -
Livity - 04.06.2018
You are missing a bracket at the end of the line
Re: Simple Error Help! :c -
TroS - 04.06.2018
Use this code:
if(SRent(GetPlayerVehicleID(playerid));
Re: Simple Error Help! :c -
EgyptForLife - 04.06.2018
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.
Re: Simple Error Help! :c -
Lokii - 04.06.2018
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 012: invalid function call, not a valid address
D:\NICEPROYECT\gamemodes\Nice.pwn(316) : error 001: expected token: ";", but found ")"
D:\NICEPROYECT\gamemodes\Nice.pwn(316) : error 029: invalid expression, assumed zero
D:\NICEPROYECT\gamemodes\Nice.pwn(316) : fatal error 107: too many error messages on one line
//Line
if(SRent(GetPlayerVehicleID(playerid))
|
PHP код:
if(SRent(GetPlayerVehicleID(playerid)))
Re: Simple Error Help! :c -
Livity - 04.06.2018
Quote:
Originally Posted by TroS
Use this code:
if(SRent(GetPlayerVehicleID(playerid));
|
If statements don't use "
;"
Re: Simple Error Help! :c -
EgyptForLife - 04.06.2018
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.
Re: Simple Error Help! :c -
Lokii - 04.06.2018
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 ")"