SA-MP Forums Archive
Errors in a line... - 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: Errors in a line... (/showthread.php?tid=306102)



Errors in a line... - Gooday - 25.12.2011

the following are the lines n*999-1010
pawn Code:
if(fexist(UserPath(playerid))) {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"You are already registered, write your chosen password to log in! ","Login","Quit");
    }
    else {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Welcome to Carson City Roleplay, Our database tell us your new here, chose your password to register!","Register","Quit");
        }
    if(!IsRolePlayName(playerid)) {
        SendClientMessage(playerid, COLOR_CRIMSON, "[NORTON DEFENDER] - [KICKED]: Please come back and use a roleplay name. (Example: Jacob_Smith)");
        Kick(playerid);
   return 1;
   }
errors:

Quote:

C:\Users\Luca\Desktop\FCRP\gamemodes\base.pwn(129) : error 017: undefined symbol "LoadStaticVehiclesFromFile"
C:\Users\Luca\Desktop\FCRP\gamemodes\base.pwn(970) : warning 213: tag mismatch
C:\Users\Luca\Desktop\FCRP\gamemodes\base.pwn(1006 ) : error 017: undefined symbol "IsRolePlayName"
C:\Users\Luca\Desktop\FCRP\gamemodes\base.pwn(1102 ) : error 017: undefined symbol "strreplace"
C:\Users\Luca\Desktop\FCRP\gamemodes\base.pwn(1105 ) : error 012: invalid function call, not a valid address
C:\Users\Luca\Desktop\FCRP\gamemodes\base.pwn(1105 ) : warning 215: expression has no effect
C:\Users\Luca\Desktop\FCRP\gamemodes\base.pwn(1105 ) : warning 215: expression has no effect
C:\Users\Luca\Desktop\FCRP\gamemodes\base.pwn(1105 ) : warning 215: expression has no effect
C:\Users\Luca\Desktop\FCRP\gamemodes\base.pwn(1105 ) : warning 215: expression has no effect
C:\Users\Luca\Desktop\FCRP\gamemodes\base.pwn(1105 ) : warning 215: expression has no effect
C:\Users\Luca\Desktop\FCRP\gamemodes\base.pwn(1105 ) : warning 215: expression has no effect
C:\Users\Luca\Desktop\FCRP\gamemodes\base.pwn(1105 ) : warning 215: expression has no effect
C:\Users\Luca\Desktop\FCRP\gamemodes\base.pwn(1105 ) : warning 215: expression has no effect
C:\Users\Luca\Desktop\FCRP\gamemodes\base.pwn(1105 ) : error 001: expected token: ";", but found ")"
C:\Users\Luca\Desktop\FCRP\gamemodes\base.pwn(1105 ) : error 029: invalid expression, assumed zero
C:\Users\Luca\Desktop\FCRP\gamemodes\base.pwn(1105 ) : fatal error 107: too many error messages on one line

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


7 Errors.

+REP!


Re: Errors in a line... - Thresholdold - 25.12.2011

pawn Code:
if(fexist(UserPath(playerid))) {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"{FFFFFF}Login","{FFFFFF}You are already registered, write your chosen password to log in!","Login","Quit");
    }
    else {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"{FFFFFF}Registering...","{FFFFFF}Welcome to Carson City Roleplay, Our database tells us you're new here, chose your password to register!","Register","Quit");
        }
    if(!IsRolePlayName(playerid)) {
        SendClientMessage(playerid, COLOR_CRIMSON, "[NORTON DEFENDER] - [KICKED]: Please come back and use a roleplay name. (Example: Jacob_Smith)");
        Kick(playerid);
   return 1;
   }
This should fix a few of the errors, but you haven't defined IsRolePlayName... just compile and post what errors you get.