Scriptage Gta SAMP

SAMPMANIAX -  
 Moïse -
Bonjour,

Je me monte un serveurr mais jai un problem avec ma COmmande /stats elle dit Server Unknow COmmand. Pourtant le script est parfait non ?

if (strcmp(cmd, "/stats", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (gPlayerLogged[playerid] != 0)
{
ShowStats(playerid,playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s sort son Iphone et regarde ses statistiques.", sendername);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vous ne vous êtes pas identitfier!");
}
}
return 1;
}

1 réponse

  1. Moïse
     
    if (strcmp(cmd, "/stats", true) == 0)
    	{
    	    if(IsPlayerConnected(playerid))
    	    {
    			if (gPlayerLogged[playerid] != 0)
    			{
    				ShowStats(playerid,playerid);
    			}
    			else
    			{
    				SendClientMessage(playerid, COLOR_GRAD1, "   Vous n'êtes pas logué!");
    			}
    		}
    		return 1;
    	}


    Bon script !
    0