Help me please {Scripting problem}
#1

yesterday my server was working, and it succesfully compiled,
i just tried this day to compile again and it didn't work

Код:
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(664) : error 017: undefined symbol "RPN"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(665) : error 017: undefined symbol "SendRobberyMessage"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(666) : error 017: undefined symbol "SendCopMessage"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(684) : error 017: undefined symbol "IsACop"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(688) : error 017: undefined symbol "IsACop"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(691) : error 017: undefined symbol "GiveZaiatMoney"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(829) : error 017: undefined symbol "IsPlayerLoggedIn"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(877) : error 017: undefined symbol "ResetZaiatWeapons"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(1172) : error 017: undefined symbol "split"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(1260) : error 017: undefined symbol "IsPlayerLoggedIn"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(1265) : error 017: undefined symbol "RPNU"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(1287) : error 017: undefined symbol "SaveZaiatAmmo"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(1482) : error 017: undefined symbol "SaveToys"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(1499) : error 017: undefined symbol "RPNU"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(1725) : error 017: undefined symbol "LoadToys"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(1733) : error 017: undefined symbol "RPN"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(1748) : error 017: undefined symbol "RPN"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(1749) : error 017: undefined symbol "SendAdminMessage"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(1752) : error 017: undefined symbol "RPN"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(1753) : error 017: undefined symbol "SendAdminMessage"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(1757) : error 017: undefined symbol "RPN"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(1758) : error 017: undefined symbol "SendAdminMessage"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(1818) : error 017: undefined symbol "split"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(1844) : error 017: undefined symbol "RHS"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(1921) : error 017: undefined symbol "fcreate"
C:\Users\hp\Desktop\my Roleplay server\gamemodes\RP.pwn(1931) : error 017: undefined symbol "split"

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


26 Errors.
Код:
L664:		format(string, sizeof(string), "** %s has disconnected and has failed the robbery. **", RPN(playerid));
L665:		SendRobberyMessage(COLOR_LIGHTRED, string);
L666:		SendCopMessage(COLOR_LIGHTRED, string);
L684:         if(IsACop(i)) copsonline++;
L688:         if(IsACop(i))
Thats all i can copy as an example, i think its an include problem ! plz help
Reply
#2

This is part of fixing.
You have undefined symbols.

Put this in top of script. You must put other lines
PHP код:
new IsPlayerLoggedIn[MAX_PLAYERS];
forward SendCopMessage(colorstring[]);
forward SendRobberyMessage(colorstring[]);
forward SendAdminMessage(colorstring[]); 
and maybe you don't have stock for IsACop

PHP код:
stock IsACop(playerid)
{
...

Reply
#3

Probably missing a bracket somewhere, check the code you have edited and look that you have as many { as }

Hope it helped
Reply
#4

missing a bracket
Reply
#5

how did he manage to fix that ive got almost the same problem with him
Reply
#6

Driche this is a 1 year old threat,Why are you replying to this?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)