Ranks...
#1

I got the error 017: undefined symbol for each rank why?

Код:
	SetPromotionMode(0-5);
	AddRank(1, Noob, 0, 500, 100, 0, 0, 0);
	AddRank(2, Newbie, 5, 1000, 100, 0, 0, 0);
	AddRank(3, Killer, 25, 2000, 100, 50, 0, 0);
	AddRank(4, Veteran Hitman, 50, 3500, 100, 50, 0, 0);
	AddRank(5, Hitman, 100, 5000, 100, 100, 0, 0);
Get helped from
http://forum.sa-mp.com/showthread.ph...650&highlight=[INC]+DINI
Reply
#2

Make sure that you have

pawn Код:
#include <Ranks>
At the top of your script .

Also, the most probable cause is because you don't have quotes around Noob, Newbie, Killer etc.

Change that to
pawn Код:
SetPromotionMode(0-5);
    AddRank(1, "Noob", 0, 500, 100, 0, 0, 0);
    AddRank(2, "Newbie", 5, 1000, 100, 0, 0, 0);
    AddRank(3, "Killer", 25, 2000, 100, 50, 0, 0);
    AddRank(4, "Veteran Hitman", 50, 3500, 100, 50, 0, 0);
    AddRank(5, "Hitman", 100, 5000, 100, 100, 0, 0);
Reply
#3

Oops I didn't see I don't have
Thank you

Now I have 1 more problem
warning 203: symbol is never used: "strtok"
What is this? I got this on my other scripts...
Reply
#4

pawn Код:
#pragma unused strtok
Place that at the top if you want to get rid of that. It's not a big deal if you get that warning though.
Reply
#5

Thank you REALLLY MUCH!
Reply
#6

Okay I did but I can't get 500 dollar now why?
Код:
	SetPromotionMode(1-5);
    AddRank(1, "Noob", 0, 500, 100, 0, 0, 0);
    AddRank(2, "Newbie", 5, 1000, 100, 0, 0, 0);
    AddRank(3, "Killer", 25, 2000, 100, 50, 0, 0);
    AddRank(4, "Veteran Hitman", 50, 3500, 100, 50, 0, 0);
    AddRank(5, "Hitman", 100, 5000, 100, 100, 0, 0);
Reply
#7

You will get 500$ when you Spawn not kill someone


This is an Ex for how it should be :


Quote:

AddRank(0, "OutSider", 0, 5000, 50.0, 0, 25, 250);
AddRank(1, "Trusted G", 100, 10000, 75.0, 25.0, 29, 500);
AddRank(2, "Original Gangster", 300, 20000, 100.0, 50.0, 28, 750);
AddRank(3, "Double O.G", 500, 30000, 100.0, 75.0, 24, 1000);
AddRank(4, "Proffesional", 800, 30000, 100.0, 100.0, 30, 1250);
AddRank(5, "Master of War", 1000, 30000, 100.0, 100.0, 31, 1500);
AddRank(6, "Gang Master", 1500, 30000, 100.0, 100.0, 28, 2000);

Note : Change the ranks name if you want
Reply
#8

I have one...
I mean I can't get money at spawn...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)