16.09.2009, 15:05
Hey, there is an error. Symbol already defined.
The error:
The error is in:
WTF??
Can someone help? Because I don't get it :/
pawn Код:
if(strcmp(cmd, "/money", true) == 0) {
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /money [playerid]");
new giveplayerid = ReturnUser(tmp);
if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid,red, "Invalid Player ID.");
{
new string[128];
new giveplayername[24];
GetPlayerName(giveplayerid, giveplayername, sizeof(giveplayername));
format(string,sizeof(string),"Money of %s.",giveplayername);
SendClientMessage(playerid,red,string);
format(string, sizeof(string), "$%d", GetPlayerMoney(giveplayerid));
SendClientMessage(playerid,COLOR_WHITE,string);
}
return 1;
}
Код:
error 021: symbol already defined: "giveplayerid"
pawn Код:
new giveplayerid = ReturnUser(tmp);
Can someone help? Because I don't get it :/