need help with code
#7

First of all put this on the top of your script, below the #define's.
pawn Код:
new PlayerMaterials[MAX_PLAYERS];
then change your old command to this one:
pawn Код:
if(strcmp(cmd, "/500mats", true) == 0)
{
    PlayerMaterials = 500;
    SendClientMessage(playerid, COLOR_RED, "You got 500 Materials");
    return 1;
}
return 1;
Why did you privided so useless information in your script ? you didn't even used GetPlayerName.
Reply


Messages In This Thread
need help with code - by n3r0s - 12.04.2010, 17:53
Re: need help with code - by n3r0s - 12.04.2010, 18:06
Re: need help with code - by aircombat - 12.04.2010, 18:07
Re: need help with code - by n3r0s - 12.04.2010, 18:10
Re: need help with code - by Adil - 12.04.2010, 18:13
Re: need help with code - by n3r0s - 12.04.2010, 18:21
Re: need help with code - by Adil - 12.04.2010, 18:30
Re: need help with code - by ¤Adas¤ - 12.04.2010, 18:43

Forum Jump:


Users browsing this thread: 1 Guest(s)