undefined symbol "SP" Help pls!
#1

Hello, i tried to change a clan name to >SP < but when i compiled i get that :
Quote:

D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(16927) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40699) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40701) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40703) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40705) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40707) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40709) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40711) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40713) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40715) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40717) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40725) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40730) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40734) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40736) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(4075 : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40760) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40761) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40762) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40763) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40764) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40765) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40766) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40767) : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(4076 : error 017: undefined symbol "SP"
D:\GTA PROG\for samp\servers\test gamemode\Gamemodes\SPTDM3x.pwn(40769) : error 017: undefined symbol "SP"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.

Quote:

PlayerInfo[playerid][SP] = 0;

PlayerInfo[playerid][SP] = (dUserINT(PlayerName2(playerid)).("SP"));

CMDpsay(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
if(PlayerInfo[playerid][sp] >= 1) {
if(isnull(params)) return SendClientMessage(playerid,0xFF0000AA, "USAGE: /spsay [text]")
&&
SendClientMessage(playerid, orange, "Function: Will send specified message as sp Member!");
new string[128];
if(PlayerInfo[playerid][SP] == 10)
format(string, sizeof(string), "***[SP]Founder %s: %s", PlayerName2(playerid), params[0] );
if(PlayerInfo[playerid][SP] == 9)
format(string, sizeof(string), "***[SP]Leader %s: %s", PlayerName2(playerid), params[0] );
if(PlayerInfo[playerid][SP] ==
format(string, sizeof(string), "***[SP]Co-Leader %s: %s", PlayerName2(playerid), params[0] );
if(PlayerInfo[playerid][SP] == 7)
format(string, sizeof(string), "***[SP]General %s: %s", PlayerName2(playerid), params[0] );
if(PlayerInfo[playerid][SP] == 6)
format(string, sizeof(string), "***[SP]Lieutenant %s: %s", PlayerName2(playerid), params[0] );
if(PlayerInfo[playerid][SP] == 5)
format(string, sizeof(string), "***[SP]HeadMember %s: %s", PlayerName2(playerid), params[0] );
if(PlayerInfo[playerid][SP] == 4)
format(string, sizeof(string), "***[SP]SeniorMember %s: %s", PlayerName2(playerid), params[0] );
if(PlayerInfo[playerid][SP] == 3)
format(string, sizeof(string), "***[SP]ExecutiveMember %s: %s", PlayerName2(playerid), params[0] );
if(PlayerInfo[playerid][SP] == 2)
format(string, sizeof(string), "***[SP]JuniorMember %s: %s", PlayerName2(playerid), params[0] );
if(PlayerInfo[playerid][SP] == 1)
format(string, sizeof(string), "***[SP]NewestMember %s: %s", PlayerName2(playerid), params[0] );
return SendClientMessageToAll(0xFF0000AA,string);
} else return SendClientMessage(playerid,0xFF0000AA,"ERROR: You must be a SP clan Member to use this command");
}
CMD:getallSP(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
if(PlayerInfo[playerid][SP] >= 9) {
new Float,Float:y,Float:z, interior = GetPlayerInterior(playerid);
GetPlayerPos(playerid,x,y,z);
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i) && (i != playerid)) {
if(PlayerInfo[i][SP] >= 1) {
if(PlayerInfo[i][LoggedIn] == 1) {
PlayerPlaySound(i,1057,0.0,0.0,0.0); SetPlayerPos(i,x+(playerid/4)+1,y+(playerid/4),z); SetPlayerInterior(i,interior);}}}}
new string[128];
if(PlayerInfo[playerid][SP] == 9)
format(string,sizeof(string),"SP Leader \"%s\" has teleported all SP members", pName(playerid) );
if(PlayerInfo[playerid][SP] == 10)
format(string,sizeof(string),"SP Founder \"%s\" has teleported all SP members", pName(playerid) );
MessageToSP(red,string);
CMDMessageToSP(playerid,"GetAllSP");
} else return SendMessageToPlayer(playerid,COLOR_RED,"ERROR: You must be SP higher level to use this command");
return 1;
}
CMD:SPmembers(playerid,params[])
{
#pragma unused params
new count = 0;
new string[128];
new ChangeColor;
new BTR[128];
if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
SendClientMessage(playerid, 0xFF0000AA, " ");
SendClientMessage(playerid, 0x00FFFFAA, "__________ |- Online SP Members -| __________");
SendClientMessage(playerid, 0xFF0000AA, " ");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
if(PlayerInfo[i][LoggedIn] == 0) continue;
if(PlayerInfo[i][SP] == 0) continue;

if(PlayerInfo[i][SP] == 1) { BTR = "Newest Member"; ChangeColor = lightblue; }
if(PlayerInfo[i][SP] == 2) { BTR = "Junior Member"; ChangeColor = lightblue; }
if(PlayerInfo[i][SP] == 3) { BTR = "Executive Member"; ChangeColor = lightblue; }
if(PlayerInfo[i][SP] == 4) { BTR = "Senior Member"; ChangeColor = lightblue; }
if(PlayerInfo[i][SP] == 5) { BTR = "Head Member"; ChangeColor = lightblue; }
if(PlayerInfo[i][SP] == 6) { BTR = "Lieutenant"; ChangeColor = lightblue; }
if(PlayerInfo[i][SP] == 7) { BTR = "General"; ChangeColor = lightblue; }
if(PlayerInfo[i][SP] == { BTR = "Co-Leader"; ChangeColor = green; }
if(PlayerInfo[i][SP] == 9) { BTR = "Leader"; ChangeColor = red; }
if(PlayerInfo[i][SP] == 10) { BTR = "Founder"; ChangeColor = yellow; }

format(string, 128, "Rank: %d - %s (Id:%i) | %s |",PlayerInfo[i][BT], PlayerName2(i),i,BTR);
SendClientMessage(playerid, ChangeColor, string);
count++;
}
if (count == 0) SendClientMessage(playerid,0xFF0000AA,"No online SP Members");
SendClientMessage(playerid, 0x00FFFFAA, "___________________________________________") ;
return 1;
}

Reply
#2

Quote the lignes please
Reply
#3

Do you have?
PHP код:
new SP
Reply
#4

Dayrion iam added new SP; but now i got (95) warns
Reply
#5

Did you have copied, pasted this code ?
Change it to:
PHP код:
new Float:SP
Reply
#6

Your Enum that covers your player stats is fucked.

Post your PlayerInfo enum.
Reply
#7

it's still Dayrion
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)