18.04.2014, 21:59
(
Последний раз редактировалось rogerioexper; 19.04.2014 в 02:18.
)
Estou tendo problemas nesti comando de dar materiais vcs podem me ajudar
PHP код:
if(strcmp(cmd, "/darmateriais", true) == 0)
{
new suspect = GetClosestPlayer(playerid);
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new targetid, amount, String[67];
// if(sscanf(params, "ui", targetid, amount)) return SendClientMessage(playerid, 0x32cd32ff, "CMD: /darmats <id/nome> <quantidade>");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xff0000ff, "(!) O jogador esta offline");
format(String, sizeof String, "Vocк deu %d de materiais para %s", amount, giveplayer);
SendClientMessage(playerid, 0x32cd32ff, String);
PlayerInfo[playerid][pMats] = amount;
return 1;
}