SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 10/08/2012, 02:21 PM   #1
Adam_Hardy
Big Clucker
 
Adam_Hardy's Avatar
 
Join Date: Nov 2011
Location: DEFQON .1
Posts: 55
Reputation: 1
Angry Help me please {Scripting problem}

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

Code:
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 (c) 1997-2006, ITB CompuPhase


26 Errors.
Code:
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
Adam_Hardy is offline   Reply With Quote
Old 10/08/2012, 03:14 PM   #2
AliveBG
Big Clucker
 
AliveBG's Avatar
 
Join Date: Apr 2012
Location: Bulgaria
Posts: 69
Reputation: 11
Default Re: Help me please {Scripting problem}

This is part of fixing.
You have undefined symbols.

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

PHP Code:
stock IsACop(playerid)
{
...

AliveBG is offline   Reply With Quote
Old 10/08/2012, 04:05 PM   #3
Ranama
Huge Clucker
 
Join Date: May 2011
Posts: 310
Reputation: 7
Default Re: Help me please {Scripting problem}

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

Hope it helped
__________________
Don't ask for a piece of code, ask to learn.
And don't be shy if you wonder something, I'd like to help.

If you like hardstyle, check out my spotify playlist here
Ranama is offline   Reply With Quote
Old 10/08/2012, 04:11 PM   #4
Eminem 2ka9
Huge Clucker
 
Join Date: Dec 2011
Location: Milky Way
Posts: 320
Reputation: -8
Default Re: Help me please {Scripting problem}

missing a bracket
Eminem 2ka9 is offline   Reply With Quote
Old 26/05/2013, 05:39 PM   #5
drichie
Big Clucker
 
drichie's Avatar
 
Join Date: Jun 2012
Posts: 146
Reputation: 1
Default Re: Help me please {Scripting problem}

how did he manage to fix that ive got almost the same problem with him
drichie is offline   Reply With Quote
Old 26/05/2013, 06:09 PM   #6
mahdi499
Big Clucker
 
mahdi499's Avatar
 
Join Date: Aug 2009
Location: Palestine
Posts: 128
Reputation: 8
Default Re: Help me please {Scripting problem}

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scripting problem, please help. [Rep+] Josh_Main Scripting Help 3 01/06/2012 04:53 PM
Scripting problem. Kemofarfar Scripting Help 4 23/10/2011 11:16 AM
[Scripting problem] Visualbr Help Archive 2 24/05/2010 10:37 PM
[HELP] problem in scripting Dirkon Help Archive 2 21/11/2009 06:31 PM


All times are GMT. The time now is 09:02 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.