Why this gives me errors?.
#1

Why this gives me errors?
Quote:

C:\Users\JACOLA03\Desktop\freeroam\pawno\include\Y SI\y_utils.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\JACOLA03\Desktop\freeroam\pawno\include\Y SI\y_utils.inc(310) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\JACOLA03\Desktop\freeroam\pawno\include\Y SI\y_utils.inc(342) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\JACOLA03\Desktop\freeroam\pawno\include\Y SI\y_utils.inc(360) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\JACOLA03\Desktop\freeroam\pawno\include\s scanf2.inc(21 : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\JACOLA03\Desktop\freeroam\pawno\include\s scanf2.inc(21 : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\JACOLA03\Desktop\freeroam\pawno\include\s scanf2.inc(27 : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\JACOLA03\Desktop\freeroam\pawno\include\s scanf2.inc(27 : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\JACOLA03\Desktop\freeroam\gamemodes\freer oam.pwn(262) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\JACOLA03\Desktop\freeroam\gamemodes\freer oam.pwn(271) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\JACOLA03\Desktop\freeroam\gamemodes\freer oam.pwn(286) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\JACOLA03\Desktop\freeroam\gamemodes\freer oam.pwn(311) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\JACOLA03\Desktop\freeroam\gamemodes\freer oam.pwn(386) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\JACOLA03\Desktop\freeroam\gamemodes\freer oam.pwn(386) : error 017: undefined symbol "COL_WHITE"
C:\Users\JACOLA03\Desktop\freeroam\gamemodes\freer oam.pwn(386) : warning 215: expression has no effect
C:\Users\JACOLA03\Desktop\freeroam\gamemodes\freer oam.pwn(386) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\JACOLA03\Desktop\freeroam\gamemodes\freer oam.pwn(386) : fatal error 107: too many error messages on one line

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


4 Errors.

Quote:

{
SendClientMessage(playerid, 0xFF4800, "Welcome to Freeroam you can do what ever you want!");
SendClientMessage(playerid, 0xFF4800, "You currently playing on server version 0.3z - script version Build 1");
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" Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Register",""COL_WHI TE"Type your password below to register a new account.","Register","Quit");
}
return 1;
}

Reply
#2

Please help me, and can someone add me on skype cuzz i need help with some more things .
Reply
#3

By the way this is a wrong section.
First of all alot of your arrays got same name and there something messed up with the string so ignore the warnings for now and fix the errors only.
In the top of your gamemode put this #define COL_WHITE 0xFFFFFFFF
I saw there spaces in your dialog fix it like this:

pawn Код:
{
SendClientMessage(playerid, 0xFF4800, "Welcome to Freeroam you can do what ever you want!");
SendClientMessage(playerid, 0xFF4800, "You currently playing on server version 0.3z - script version Build 1");
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" Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Register",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
}
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)