SA-MP Forums Archive
Some errors - 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: Some errors (/showthread.php?tid=402828)



Some errors - Stanford - 28.12.2012

Quote:

C:\Users\TSC\Desktop\NGRP+MCRP\gamemodes\IRP739.pw n(40541) : error 012: invalid function call, not a valid address
C:\Users\TSC\Desktop\NGRP+MCRP\gamemodes\IRP739.pw n(40541) : warning 215: expression has no effect
C:\Users\TSC\Desktop\NGRP+MCRP\gamemodes\IRP739.pw n(40541) : error 001: expected token: ";", but found ")"
C:\Users\TSC\Desktop\NGRP+MCRP\gamemodes\IRP739.pw n(40541) : error 029: invalid expression, assumed zero
C:\Users\TSC\Desktop\NGRP+MCRP\gamemodes\IRP739.pw n(40541) : fatal error 107: too many error messages on one line

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


4 Errors.

Here's the line:

Код:
if(!gPlayerLogged(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");



Re: Some errors - Grim_ - 28.12.2012

If gPlayerLogged is an array, you need to access it by using square brackets
pawn Код:
gPlayerLogged[playerid]



Re: Some errors - Yvax - 28.12.2012

Quote:
Originally Posted by Grim_
Посмотреть сообщение
If gPlayerLogged is an array, you need to access it by using square brackets
pawn Код:
gPlayerLogged[playerid]
Also, post the line before the one you get errors to.


Re: Some errors - RedCrossER - 28.12.2012

Use [playerid] instead of (playerid) if still getting errors? Please post few above lines also