[Help] Error
#1

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 >?
Reply
#2

Post 5 lines above that line and five lines under that line..
Reply
#3

{SendClientMessage(playerid, COLOR_RED, "USAGE: /changename [new name]");


} is missing?
Reply
#4

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
Reply
#5

can anyone help me ?
Reply
#6

{SendClientMessage(
^where is that connected? '{'
Reply
#7

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
Reply
#8

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)