30.07.2011, 19:04
switched the pos check to 1st and vehicle check to 2nd
btw at #1 you don't have the "i" defined...
btw at #1 you don't have the "i" defined...
pawn Код:
stock GetPlayerIDFromName(vardas[])
{
for(new i=0;i<MAX_PLAYERS;i++)
{
foreach(Player, i)
{
if(strcmp(GetPlayerNameEx(i), vardas, false, strlen(vardas))) return i;
}
}
return INVALID_PLAYER_ID;
}