Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

SendClientMessege error?

$
0
0
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"); 


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>