Detecting name wont work :/
#9

pawn Код:
if(!strcmp(name(playerid),"[COD]Alex",true)) // for me it's :
// if he logging to the server and he don't have [COD]Alex (because of !strcmp)
{ //
    // send the message
    SendClientMessageToAll(COLOR,"blabla"); //
    return 1; //
} //

// try like this

if(strcmp(name,"[COD]Alex",true)) // for me it's :
// if he logging to the server and he have [COD]Alex (because of strcmp)
{ //
    // send the message
    SendClientMessageToAll(COLOR,"blabla"); //
    return 1; //
}
else // is name is not [COD]Alex
{ //
    SendClientMessageToAll(COLOR, "blabla"); //
    return 1; //
}//
correct me If I am wrong
Reply


Messages In This Thread
Detecting name wont work :/ - by Alex_Obando - 28.10.2013, 01:31
Re : Detecting name wont work :/ - by Matnix - 28.10.2013, 01:41
Re: Detecting name wont work :/ - by SAMProductions - 28.10.2013, 01:45
Respuesta: Detecting name wont work :/ - by Alex_Obando - 28.10.2013, 01:47
Re: Detecting name wont work :/ - by SAMProductions - 28.10.2013, 01:51
Re : Detecting name wont work :/ - by Matnix - 28.10.2013, 01:53
Respuesta: Detecting name wont work :/ - by Alex_Obando - 28.10.2013, 01:55
Re: Detecting name wont work :/ - by EiresJason - 28.10.2013, 02:03
Re : Detecting name wont work :/ - by Matnix - 28.10.2013, 02:08
Re: Re : Detecting name wont work :/ - by cessil - 28.10.2013, 02:24

Forum Jump:


Users browsing this thread: 3 Guest(s)