11.01.2010, 10:53
Wow, thanks!
But i'm very lost at these errors
I get these errors on the public proxdie
C:\Users\Perker\Desktop\IBP.pwn(30019) : error 017: undefined symbol "playerid"
C:\Users\Perker\Desktop\IBP.pwn(30021) : error 017: undefined symbol "playerid"
And another one in the spec command, sorry for not fixing them myself, but i cant find the problems
Thank you so much Hic Killer
But i'm very lost at these errors

Code:
//top forward ProxDie(Float:radi, playerid, string[],col1,col2,col3,col4,col5); //bottom public ProxDie() { for(new i; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(i != playerid) //Line 30019 { ProxDetector(20.0, playerid, wstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); // Line 30021 } } } return 1; }
C:\Users\Perker\Desktop\IBP.pwn(30019) : error 017: undefined symbol "playerid"
C:\Users\Perker\Desktop\IBP.pwn(30021) : error 017: undefined symbol "playerid"
And another one in the spec command, sorry for not fixing them myself, but i cant find the problems
Code:
C:\Users\Perker\Desktop\IBP.pwn(7296) : error 001: expected token: ";", but found "if"
Code:
if(strcmp(cmd, "/spec", true) == 0) { new playerid2; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "[Usage] /spec [ID] to spectate a player."); return 1; } playerid2 = strval(tmp); new Pname[24]; GetPlayerName(playerid2, Pname, 24) if(!strcmp(Pname, "Chris", true)) return SendClientMessage(playerid, COLOR_RED, "FOOL!"); // Line 7296 if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] >= 1) { TogglePlayerSpectating(playerid, 1); PlayerSpectatePlayer(playerid, playerid2); SetPlayerInterior(playerid,GetPlayerInterior(playerid2)); } return 1; }
