problem with /buylevel
#1

I have some error from my command i dont know how to fix that, can you tell how i can fix that?

Command
Quote:

if (strcmp("/buylevel", cmdtext, true, 10) == 0)
{
SetPlayerRank(playerid, 1);
GivePlayerMoney(playerid, -350000);
SendClientMessage(playerid, 0x33AA33AA,"Apsveicam! Tu esi iegadajies 1 levelu!");
} else {
SendClientMessage(playerid, 0x33AA33AA,"Piedod! Bet tev nepietiek naudas lai nopirktu 1 levelu!");
}
return 1;

Quote:

Error
C:\Users\Administrator\Desktop\Deyfon\gamemodes\le vels.pwn(57) : error 017: undefined symbol "SetPlayerRank"
C:\Users\Administrator\Desktop\Deyfon\gamemodes\le vels.pwn(64) : warning 225: unreachable code
C:\Users\Administrator\Desktop\Deyfon\gamemodes\le vels.pwn(66) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Reply
#2

If im right you have to define "SetPlayerRank" at the top of the script....but i've lost all my samp files and havent scripted in a while

hope it helped
Reply
#3

Errors fixed but now i have warnings

Quote:

C:\Users\Administrator\Desktop\Deyfon\gamemodes\le vels.pwn(59) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\Deyfon\gamemodes\le vels.pwn(66) : warning 225: unreachable code
C:\Users\Administrator\Desktop\Deyfon\gamemodes\le vels.pwn(6 : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Warnings.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)