11.04.2011, 16:47
Hello, I am scripting a Gold coin system. And i have made a /goldcoins command. Where it shows you how many coins you have left. And this is what happends: When you have 1 gold coin. It says you have three(3) for some reason. This is my /goldcoins command.
Anyone knows whats wrong?
Thanks, Alex
pawn Код:
if(strcmp("/goldcoins",cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pVipCoin] >= 0)
{
new string[128];
format(string,sizeof(string),"You have: %d Gold coins left",pVipCoin);
SendClientMessage(playerid,COLOR_GOLD,string);
}
else
{
SendClientMessage(playerid, COLOR_GOLD, "You dont have any Gold Coins left");
}
return 1;
}
Thanks, Alex