NON-RP Name kick. Small problem
#1

Fixed
Reply
#2

Код:
if(PlayerInfo[playerid][pAdmin] == 0) && strfind(name,"_",true)== -1)
This won't compile anyway since you have a bracket too much. The bracket after == 0 should be removed for this if statement to be correct.
After the fix it would be
Код:
if(PlayerInfo[playerid][pAdmin] == 0 && strfind(name,"_",true)== -1)
Reply
#3

Thanks heaps man! If the player does have a roleplay name, will the the code underneath still be executed?

This code?
PHP код:
if(IsPlayerNPC(playerid)) 
    { 
        
printf("NPC: OnPlayerRequestClass: %d"playerid); 
        return 
1
    } 
    if(
gPlayerLogged[playerid] == 0
    { 
        switch(
gPlayerAccount[playerid]) 
        { 
            case 
0DisplayDialogForPlayer(playerid2); //register 
            
case 1DisplayDialogForPlayer(playerid1); //login 
//etc etc etc etc 
        

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)