SA-MP Forums Archive
getting errors fix it please! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: getting errors fix it please! (/showthread.php?tid=427359)



getting errors fix it please! - Rayansh - 01.04.2013

Hello Here Im Rayansh i have script i m getting this errors ?
Код:
C:\Documents and Settings\DOn\Desktop\'\Samp Server 0.3x\filterscripts\Admin system.pwn(19) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Don\Desktop\'\Samp Server 0.3x\filterscripts\Admin system.pawn(19) : warning 215: expression has no effect
C:\Documents and Settings\Don\Desktop\'\Samp Server 0.3x\filterscripts\Admin system.pwn(19) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Don\Desktop\'\Samp Server 0.3x\filterscripts\Admin system.pwn(19) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Don\Desktop\'\Samp Server 0.3x\filterscripts\Admin system.pwn(19) : fatal error 107: too many error messages on one line
4 Errors.
This is code anyone help me fast please
Код:
if new online, string[128], file[32];



Re: getting errors fix it please! - Patrick - 01.04.2013

im not sure why did you put if in variable? or thats an explanation...

pawn Код:
new online, string[128], file[32]; //remove if
because i can't find any errors on that.


Re: getting errors fix it please! - DiGiTaL_AnGeL - 01.04.2013

Delete that "if".


Re: getting errors fix it please! - Rayansh - 01.04.2013

Getting this again?
Код:
C:\Documents and Settings\Don\Desktop\'\Samp Server 0.3x\filterscripts\Admin system.pwn(19) : error 001: expected token: "-identifier-", but found ","
C:\Documents and Settings\Don\Desktop\'\Samp Server 0.3x\filterscripts\Admin system.pwn(20) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Don\Desktop\'\Samp Server 0.3x\filterscripts\Admin system.pwn(20) : warning 215: expression has no effect
C:\Documents and Settings\Don\Desktop\'\Samp Server 0.3x\filterscripts\Admin system.pwn(20) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Don\Desktop\'\Samp Server 0.3x\filterscripts\Admin system.pwn(20) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Don\Desktop\'\Samp Server 0.3x\filterscripts\Admin system.pwn(20) : fatal error 107: too many error messages on one line
5 Errors.



Re: getting errors fix it please! - Rayansh - 01.04.2013

Plsh Help Me!!!


Re: getting errors fix it please! - iGetty - 01.04.2013

Post lines 18, 19 and 20.

Also, don't bump your threads.


Re: getting errors fix it please! - Rayansh - 01.04.2013

Код:
{
    new online, string(128), file(32);
   	if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
Here You



Re: getting errors fix it please! - SuperViper - 01.04.2013

You don't use parenthesis to specify a length, you need to use square brackets.

pawn Код:
new online, string[128], file[32];



Re: getting errors fix it please! - Rayansh - 01.04.2013

How to use this can you tell me..


Re: getting errors fix it please! - iGetty - 01.04.2013

You obviously need to read some guides and possibly change your signature from "Experienced Scripter". Lol.