Bonsoir,
Je suis nouveaux dans le monde du script et j'ai un petit problème, une erreur a ce niveau et je ne voie pas pourquoi.
[spoiler]public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/handsup", true) == 0) // Le joueur léve les mains
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
return 1;
}
if(strcmp(cmd, "/beer", true) == 0)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER); // On donne une bouteille au joueur (instruction)
return 1;
}
return 0;
}
[/spoiler]