one error one little error error 001 - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: one error one little error error 001 (
/showthread.php?tid=270023)
one error one little error error 001 -
sanrock - 18.07.2011
Код:
C:\Users\Jo\Desktop\samp server\filterscripts\Stars.pwn(13) : error 001: expected token: ")", but found "return"
Код:
#include < a_samp >
#include < zcmd > // You need ZCMD for this.
#include < sscanf2 > // You also need SSCANF2 include + plugin for this.
#define ZOMBIE 1
#define HUMAN 2
#define STARS 3
#define UC 4
//// you can add more///
CMD:heal( playerid, params[ ] ) {
if( GetPVarInt( playerid, "STARS" )
return SendClientMessage(playerid, -1, "You need to be STARS to use this.");
SetPlayerHealth( playerid, 100.0 );
return SendClientMessage( playerid, -1, "You healed yourself. " );
}
any help
please help
return SendClientMessage(playerid, -1, "You need to be STARS to use this."); is 13 line
Re: one error one little error error 001 -
Adil - 18.07.2011
pawn Код:
if( GetPVarInt( playerid, "STARS" ))
Re: one error one little error error 001 -
iGetty - 18.07.2011
pawn Код:
#include < a_samp >
#include < zcmd > // You need ZCMD for this.
#include < sscanf2 > // You also need SSCANF2 include + plugin for this.
#define ZOMBIE 1
#define HUMAN 2
#define STARS 3
#define UC 4
//// you can add more///
CMD:heal( playerid, params[ ] ) {
if( GetPVarInt( playerid, "STARS" ))
return SendClientMessage(playerid, -1, "You need to be STARS to use this.");
SetPlayerHealth( playerid, 100.0 );
return SendClientMessage( playerid, -1, "You healed yourself. " );
}
Re: one error one little error error 001 -
sanrock - 18.07.2011
thank you so much