Je pence que c'est ça :
else if (!strcmp(cmd, "/giveweapon", true))
{
new pid,id1,id2,tmp[256],tmpp[256],tmppp[256];
---------> tmpp <--------- = strtok(cmdtext, idx);
if (!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREEN, "USAGE: /giveweapon [playerid] [weapon] [ammo]");
return 1;
}
pid = strval(tmp);
if (!(IsPlayerConnected(pid)))
{
SendClientMessage(playerid, COLOR_RED, "THAT PLAYER IS NOT CONNECTED!");
return 1;
}
id1 = strval(tmpp);
id2 = strval(tmppp);
GivePlayerWeapon(pid,id1,id2);
GetPlayerName(playerid, AdminName, sizeof(AdminName));
format(tmpp, sizeof(tmpp), "[RAS]Admin %s given you a weapon (id %d ) whit %d bullets",AdminName,id1,id2);
SendClientMessage(pid,COLOR_YELLOW,tmpp);
return 1;
}
Remplace tmpp par tmp
Edit : Heuu attend, Plus de précision, T'as des erreurs ou ca ne marche pas quand tu le fais ?