What's wrong with this line?
#1

Код:
new string1[200], string2[200], string3[200], CopName[24], CriminalName[24], CriminalID, jReason[128];
	if(gTeam !== PD) return SendClientMessage(playerid, COLOR_RED, "You are not a police officer!");
ERRORS:
Код:
C:\Users\x\Desktop\x\gamemodes\x.pwn(911) : error 029: invalid expression, assumed zero
C:\Users\x\Desktop\x\gamemodes\x.pwn(911) : warning 215: expression has no effect
C:\Users\x\Desktop\x\gamemodes\x.pwn(911) : error 001: expected token: ";", but found ")"
C:\Users\x\Desktop\x\gamemodes\x.pwn(911) : error 029: invalid expression, assumed zero
C:\Users\x\Desktop\x\gamemodes\x.pwn(911) : fatal error 107: too many error messages on one line
Thanks for the help!
Reply
#2

Show More Lines !!
Reply
#3

Код:
	new string1[200], string2[200], string3[200], CopName[24], CriminalName[24], CriminalID, jReason[128];
	
	if(gTeam !== PD) return SendClientMessage(playerid, COLOR_RED, "You are not a police officer!");
	
	if(sscanf(params, "us[128]", CriminalID, jReason)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /arrest [ID] [REASON]");
	{
	    if(GetPlayerWantedLevel(CriminalID) => 1)
Reply
#4

!== should be !=
Reply
#5

Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)