[Help] Error - 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: [Help] Error (
/showthread.php?tid=582340)
[Help] Error -
Andy5 - 19.07.2015
LINE
------
Quote:
else {SendClientMessage(playerid, COLOR_RED, "USAGE: /changename [new name]");
|
Ther ERROR
-----------
Quote:
: C:\Users\ma\Desktop\ADA.pwn(3821) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
|
How i fix it >?
Re: [Help] Error -
McDzuna97 - 19.07.2015
Post 5 lines above that line and five lines under that line..
Re: [Help] Error -
jamesmith12 - 19.07.2015
{SendClientMessage(playerid, COLOR_RED, "USAGE: /changename [new name]");
} is missing?
Re: [Help] Error -
Andy5 - 19.07.2015
Quote:
CMD:changename(playerid, params[])
{
new string[36];
if(!sscanf(params, "s[36]", string))
SetPlayerName(playerid, string);
GivePlayerMoney(playerid, -5000);
else {SendClientMessage(playerid, COLOR_RED, "USAGE: /changename [new name]");
}
|
This is The Command That I was Doing
Re: [Help] Error -
Andy5 - 19.07.2015
can anyone help me ?
Re: [Help] Error -
jamesmith12 - 19.07.2015
{SendClientMessage(
^where is that connected? '{'
Re: [Help] Error -
simo0000 - 19.07.2015
pawn Код:
CMD:changename(playerid, params[])
{
new string[36];
if(sscanf(params, "s[36]", string)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /changename [new name]");
SetPlayerName(playerid, string);
GivePlayerMoney(playerid, -5000);
SendClientMessage(playerid, -1, "You have changed your name");
return 1;
}
rep me if i helped you thnx
Re: [Help] Error -
Andy5 - 19.07.2015
Quote:
Originally Posted by simo0000
pawn Код:
CMD:changename(playerid, params[]) { new string[36]; if(sscanf(params, "s[36]", string)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /changename [new name]"); SetPlayerName(playerid, string); GivePlayerMoney(playerid, -5000); SendClientMessage(playerid, -1, "You have changed your name"); return 1; }
rep me if i helped you thnx
|
Working , Thanks
+Rep