SA-MP Forums Archive
What is wrong with this? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: What is wrong with this? (/showthread.php?tid=236920)



What is wrong with this? - cre8ticity - 08.03.2011

Help me out.

pawn Код:
public Registration(playerid)
{
    new Regstep = dUserINT(PlayerName(playerid)).("Regstep");
    if(Regstep(playerid) == 0) // Error line
    {
        ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT,"Registration Step 1","How old are you?","Submit","Quit");
    }
    return 1;
}
Errors:

Код:
C:\Users\Joe\Desktop\Sa-mp\gamemodes\supremeroleplay.pwn(166) : error 012: invalid function call, not a valid address
C:\Users\Joe\Desktop\Sa-mp\gamemodes\supremeroleplay.pwn(166) : warning 215: expression has no effect
C:\Users\Joe\Desktop\Sa-mp\gamemodes\supremeroleplay.pwn(166) : error 001: expected token: ";", but found ")"
C:\Users\Joe\Desktop\Sa-mp\gamemodes\supremeroleplay.pwn(166) : error 029: invalid expression, assumed zero
C:\Users\Joe\Desktop\Sa-mp\gamemodes\supremeroleplay.pwn(166) : fatal error 107: too many error messages on one line

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


4 Errors.



Re: What is wrong with this? - Vero - 08.03.2011

What one is the error line?


Re: What is wrong with this? - cre8ticity - 08.03.2011

Added to the script.


Re: What is wrong with this? - OldDirtyBastard - 08.03.2011

Try:
pawn Код:
if(Regstep == 0)



Re: What is wrong with this? - cre8ticity - 08.03.2011

Quote:
Originally Posted by OldDirtyBastard
Посмотреть сообщение
Try:
pawn Код:
if(Regstep == 0)
Thanks dude, fixed it.