05.11.2009, 09:14
you can use zcmd or strtok
zcmd take the Crack's code
if with strtok try this
zcmd take the Crack's code
if with strtok try this
pawn Код:
if(strcmp("/givescore",cmdtext,true,10) == 0)
{
if(IsPlayerAdmin(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /givescore [id]");
return 1;
}
new pl = strval(tmp);
new score = GetPlayerScore(pl);
SetPlayerScore(pl,score+1);
return 1;
}
}
return 1;
}