21.01.2010, 17:07
Код:
else if(strcmp(PlayerName,"BLANK",true))
else if(strcmp(PlayerName,"BLANK",true))
else if(!strcmp(PlayerName,"BLANK",true))
Originally Posted by Doom (NoZer0)
If you read the documentation, you can see that strcmp returns not 1 when it's correct.
try this: pawn Код:
And BTW: make sure that PlayerName contains the playername. |
And BTW: make sure that PlayerName contains the playername.
new PlayerName[24]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
new PlayerName[24];
if(!strcmp(cmdtext, "/command" ,true)) { if(strcmp(PlayerName,"BLANK",true)) { //your command goes here } return 1; }
else if(strcmp(PlayerName,"BLANK",true))
{
if (PlayerToPoint(15, playerid,174.788970,-1350.784301,68.365165))
{
//command.
}
else { SendClientMessage(playerid, COLOR_GREY,"Destination is too far."); }
}
Originally Posted by NewYorkRP
I just need to know what will work, since you 2 gave me different things, it's weird.
pawn Код:
pawn Код:
|