Affichage des articles dont le libellé est SendClientMessege error?. Afficher tous les articles
Affichage des articles dont le libellé est SendClientMessege error?. Afficher tous les articles

vendredi 22 juillet 2016

SendClientMessege error?

Let's block ads! (Why?)



SendClientMessege error?
Old 23/07/2016, 05:54 AM   #3

Gangsta

 

Join Date: May 2016

Location: Canada

Posts: 594

Reputation: 21

DefaultRe: SendClientMessege error?

Quote:

Originally Posted by b0b View Post
Hello i het all time this error

i have #define SCM SendClientMessege

PHP Code:

error 017undefined symbol "SendClientMessege" 

PHP Code:

CMD:kick(playerid,params[])
{

    new 

idreason[80], string[128];
       if(
sscanf(params,"us[80]",id,reason)) return SCM(playeridKASUTUSCOLOR,"KASUTA: /kick [ID/osanimest] [põhjus]");
    if(
id == INVALID_PLAYER_ID) return SCM(playeridV_HPUNANE,"Vale ID !");
       if(
PlayerInfo[playerid][pAdmin] < 1) return SCM(playeridV_UPUNANE"Sa ei ole admin");
    
format(stringsizeof(string),"%s kickiti %s poolt, põhjus: %s.",GetName(id), GetName(playerid), reason);
    
SendClientMessageToAll(V_HPUNANE,string);
    
Kick(id);
    return 
1;

LINES:

PHP Code:

       if(sscanf(params,"us[80]",id,reason)) return SCM(playeridKASUTUSCOLOR,"KASUTA: /kick [ID/osanimest] [põhjus]");
    if(
id == INVALID_PLAYER_ID) return SCM(playeridV_HPUNANE,"Vale ID !");
if(
PlayerInfo[playerid][pAdmin] < 1) return SCM(playeridV_UPUNANE"Sa ei ole admin"); 

Even if u define SendClientMessage as scm its still SendClientMessage

PHP Code:

SendClientMessage(playeridV_UPUNANE"Sa ei ole admin"); 

Unless u make a stock..
WhiteGhost is online now   Reply With Quote