14.07.2009, 15:13
Hello readers,
Most of the time GetPlayerId would work..but then suddenly when i dont expect it this will happen;
i got this;
You know why this happen ? please post here thanks
Most of the time GetPlayerId would work..but then suddenly when i dont expect it this will happen;
Код:
C:\Users\Benutzer\Desktop\D-Fs.pwn(133) : warning 217: loose indentation C:\Users\Benutzer\Desktop\D-Fs.pwn(138) : warning 217: loose indentation C:\Users\Benutzer\Desktop\D-Fs.pwn(145) : error 017: undefined symbol "GetPlayerId" C:\Users\Benutzer\Desktop\D-Fs.pwn(152) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Код:
if(strcmp(cmd, "/Taxi", true) == 0) { new tmp[128]; tmp = strtok(cmdtext, idx); new currentplayer1; new sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid,sendername, sizeof(sendername)); currentplayer1 = GetPlayerId(sendername); if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /Taxi [playerid]"); SetPlayerMarkerForPlayer(currentplayer1,strval(tmp),0xFF0000FF ); TogglePlayerControllable(strval(tmp),0); }