newbie-warn help. - 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: newbie-warn help. (
/showthread.php?tid=592546)
newbie-warn help. -
DrakeTheScripter - 26.10.2015
So. My pawno is not working properly, and I need someone to help me fix these lines.
Код:
format( String, sizeof ( String ), "Player %s got banned from newbie chat for earning 3 warnings.", GetPlayerNameEx;
gets this error: error 076: syntax error in the expression, or invalid function call
&
Код:
return SendClientMessage( playerid, -1, "Only gamemasters/admins can use this command."
new tempname, temptext[ 128 ];
gets this error: (135876 -- 13587

: error 001: expected token: ",", but found "new"
Re: newbie-warn help. -
Sabur - 26.10.2015
Код:
format(string, sizeof(string), "Player %s got banned from newbie chat for earning 3 warnings.", GetPlayerNameEx(playerid));
and show the full code of 135876 - 13587.
Re: newbie-warn help. -
DrakeTheScripter - 26.10.2015
its this
return SendClientMessage( playerid, -1, "Only gamemasters/admins can use this command."
new tempname, temptext[ 128 ];
Re: newbie-warn help. -
jlalt - 26.10.2015
Quote:
Originally Posted by DrakeTheScripter
its this
return SendClientMessage( playerid, -1, "Only gamemasters/admins can use this command."
new tempname, temptext[ 128 ];
|
you did not close the message with );
PHP код:
SendClientMessage( playerid, -1, "Only gamemasters/admins can use this command.");
Re: newbie-warn help. -
DrakeTheScripter - 26.10.2015
Thank you.
but, still this error consists.
(135892) : error 076: syntax error in the expression, or invalid function call
FROM LINE: format( String, sizeof ( String ), "Player %s got banned from newbie chat for earning 3 warnings.", GetPlayerNameEx;
Re: newbie-warn help. -
DrakeTheScripter - 26.10.2015
Bump
Re : Re: newbie-warn help. -
StreetRP - 26.10.2015
Quote:
Originally Posted by DrakeTheScripter
Thank you.
but, still this error consists.
(135892) : error 076: syntax error in the expression, or invalid function call
FROM LINE: format( String, sizeof ( String ), "Player %s got banned from newbie chat for earning 3 warnings.", GetPlayerNameEx;
|
PHP код:
format( String, sizeof ( String ), "Player %s got banned from newbie chat for earning 3 warnings.", GetPlayerNameEx(playerid))
Re: newbie-warn help. -
AbyssMorgan - 26.10.2015
PHP код:
format(String, sizeof String , "Player %s got banned from newbie chat for earning 3 warnings.",GetPlayerNameEx(playerid));