SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 25/12/2011, 08:11 AM   #1
Gooday
Huge Clucker
 
Gooday's Avatar
 
Join Date: Nov 2011
Location: Fort Carson
Posts: 489
Reputation: 40
Default Errors in a line...

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 (c) 1997-2006, ITB CompuPhase


7 Errors.
+REP!
Gooday is offline   Reply With Quote
Old 25/12/2011, 09:37 AM   #2
Thresholdold
Huge Clucker
 
Thresholdold's Avatar
 
Join Date: Sep 2011
Location: Inside your RCON
Posts: 441
Reputation: 30
Default Re: Errors in a line...

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.
__________________
Thresholdold is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
4 errors in one line... samtey Scripting Help 10 30/08/2011 07:36 PM
4 Errors in 1 line nuriel8833 Help Archive 4 11/12/2010 06:25 AM
7 errors on one line Manku Help Archive 1 13/09/2009 02:47 PM
4 errors on one line Manku Help Archive 3 13/09/2009 02:30 PM
Shows Errors but no errors in this line Kane_Phoenix Help Archive 2 31/03/2009 02:38 PM


All times are GMT. The time now is 02:35 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.