What Problem
#1

I have some error with lines

Код:
CMD:buildrace(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] <= 4) return SendClientMessage(playerid, RED, "<!> Ban khong du kha nang su dung lenh nay!");
	if(BuildRace != 0) return SendClientMessage(playerid, RED, "<!> There's already someone building a race!");
	if(RaceBusy == 0x01) return SendClientMessage(playerid, RED, "<!> Wait first till race ends!");
	if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, RED, "<!>Hay ra khoi xe truoc!");
	BuildRace = playerid+1;
	ShowDialog2(playerid, 599);
	return 1;
}
i have downloaded and copied zcmd into include but it still have this problem , anything help ?
Reply
#2

what are errors?
Reply
#3

what are the errors ? use instead of [code] next time btw
Reply
#4

I will play "guess the errors":

it might be this line:
pawn Код:
if(RaceBusy == 0x01)
am I right? if so replace these "0x01" with "1" ( I don't know how did you use RaceBusy exactly so Im guessing )
Reply
#5

Quote:
Originally Posted by Stanford
Посмотреть сообщение
I will play "guess the errors":

it might be this line:
pawn Код:
if(RaceBusy == 0x01)
am I right? if so replace these "0x01" with "1" ( I don't know how did you use RaceBusy exactly so Im guessing )
That line is perfectly fine;
He maybe didn't define it.
Reply
#6

it's have ERROR with
Quote:

C:\Users\Administrator\Desktop\DM.Stune.Zombie\GGN FS\GGNFS\GGNFS\gamemodes\NFS.pwn(14557) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\DM.Stune.Zombie\GGN FS\GGNFS\GGNFS\gamemodes\NFS.pwn(14557) : error 017: undefined symbol "cmd_buildrace"
C:\Users\Administrator\Desktop\DM.Stune.Zombie\GGN FS\GGNFS\GGNFS\gamemodes\NFS.pwn(14557) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\DM.Stune.Zombie\GGN FS\GGNFS\GGNFS\gamemodes\NFS.pwn(14557) : fatal error 107: too many error messages on one line

Reply
#7

Did you.

pawn Код:
#include <zcmd>
At the top of your script?

Make sure you download the lastest include. https://sampforum.blast.hk/showthread.php?tid=91354
Reply
#8

Yeah , i have it in my #include
Reply
#9

Where you put this command?
Reply
#10

I put it alone
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)