What is wrong with this?
#1

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.
Reply
#2

What one is the error line?
Reply
#3

Added to the script.
Reply
#4

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)