SA-MP Forums Archive
1 error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 1 error (/showthread.php?tid=375880)



1 error - 0utLaW_ - 08.09.2012

pawn Код:
C:\DOCUME~1\ADMINI~1\Desktop\P\(2198) : error 017: undefined symbol "SMUGGLER"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Line 2198

pawn Код:
SetPlayerTeam(playerid, SMUGGLER);
full code

pawn Код:
case 3: // Smuggler
            {
                SetPlayerTeam(playerid, SMUGGLER);
                ChoosingRole[playerid] = 0;
                TogglePlayerControllable(playerid, true);
                GivePlayerWeapon(playerid, 2, 1);
                GivePlayerWeapon(playerid, 23, 250);
                GivePlayerWeapon(playerid, 30, 24);
            }
help me please.


Re: 1 error - 0utLaW_ - 08.09.2012

extra info:
i followed this tutorial
http://forum.sa-mp.com/showthread.ph...ht=Jobs+server
but i want to have a new job for civilian so i added it as a case ie case 3
am i missing something?
why do i have that error, i am still new at pawno please help.


Re: 1 error - kbalor - 08.09.2012

You didn't define what SMUGGLER is/for.


Re: 1 error - 0utLaW_ - 08.09.2012

how do i do that ?


Re: 1 error - clarencecuzz - 08.09.2012

^^ Exactly.

Add
Код:
#define SMUGGLER value
You will have to replace 'value' with the number you want. Example: If TEAM SMUGGLER is Team # 3, change value to 3. If it is team # 15 change it to 15 etc.

Example:
pawn Код:
#define SMUGGLER 4
Recommended that you place before usage, under #include's preferably.


Re: 1 error - 0utLaW_ - 08.09.2012

Thanks guys, you both were really helpful
fixed.