Need help with some function.
#1

Quote:
public OnPlayerDisconnect(playerid, reason)
{
if(Captured[playerid] == 0; && IsPlayerCapturing[playerid][CAPZONE] == 1)
{
LeavingCAPZONE(playerid);
}
return 1;
}

and gets these 4 errors :/

Quote:

C:\Users\Ultimate\Downloads\samp03x_svr_R2_win32\g amemodes\text.pwn(111) : error 033: array must be indexed (variable "Captured")
C:\Users\Ultimate\Downloads\samp03x_svr_R2_win32\g amemodes\text.pwn(111) : error 036: empty statement
C:\Users\Ultimate\Downloads\samp03x_svr_R2_win32\g amemodes\text.pwn(111) : error 029: invalid expression, assumed zero
C:\Users\Ultimate\Downloads\samp03x_svr_R2_win32\g amemodes\text.pwn(111) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

i know there's a problem with if(Captured[playerid] == 0; i should remove the ; but if i removed it i will get more errors :/ help please
Reply


Messages In This Thread
Need help with some function. - by Sawalha - 15.11.2013, 06:17
Re: Need help with some function. - by newbie scripter - 15.11.2013, 06:19
Re: Need help with some function. - by Cameltoe - 15.11.2013, 06:20
Re: Need help with some function. - by Giroud12 - 15.11.2013, 06:22
Re: Need help with some function. - by Sawalha - 15.11.2013, 07:14
Re: Need help with some function. - by Cameltoe - 15.11.2013, 07:22
Re: Need help with some function. - by Sawalha - 15.11.2013, 07:37
Re: Need help with some function. - by Cameltoe - 15.11.2013, 08:29
Re: Need help with some function. - by Sawalha - 15.11.2013, 09:53
Re: Need help with some function. - by Sawalha - 16.11.2013, 08:16
Re: Need help with some function. - by newbie scripter - 16.11.2013, 08:31
Re: Need help with some function. - by Sawalha - 16.11.2013, 09:30
Re: Need help with some function. - by Sawalha - 17.11.2013, 11:21

Forum Jump:


Users browsing this thread: 1 Guest(s)