error 001: expected token: ")", but found "return" - 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: error 001: expected token: ")", but found "return" (
/showthread.php?tid=629695)
error 001: expected token: ")", but found "return" - adri[4]Life - 02.03.2017
Today i was working on admin system so when i complied it promote command had an error :
Код:
(1585) : error 001: expected token: ")", but found "return"
Line 1585 :
Код:
if(sscanf(params,"ud",id,level) return SendClientMessage(playerid, -1,"usage: /promote name/id level");
How To Fix It Please?
thanks !
Re: error 001: expected token: ")", but found "return" -
Toroi - 02.03.2017
Код:
if(sscanf(params,"ud",id,level)) return SendClientMessage(playerid, -1,"usage: /promote name/id level");
...............................................^ you missed a bracket
Re: error 001: expected token: ")", but found "return" - adri[4]Life - 02.03.2017
Quote:
Originally Posted by Troydere
Код:
if(sscanf(params,"ud",id,level)) return SendClientMessage(playerid, -1,"usage: /promote name/id level");
...............................................^ you missed a bracket
|
thanks it's working now +rep For u