05.03.2016, 17:05
Hey, i'm reciving the following errors:
---------------------------------------------------------------------------------------------------------------------------------
Coded script :
Код:
C:\Users\Nelson.Paulo2301-PC\Desktop\samp037_svr_R2-1-1_win32\pawno\include\YSI\y_utils.inc(343) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Nelson.Paulo2301-PC\Desktop\samp037_svr_R2-1-1_win32\pawno\include\YSI\y_utils.inc(497) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Nelson.Paulo2301-PC\Desktop\samp037_svr_R2-1-1_win32\pawno\include\YSI\y_utils.inc(540) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Nelson.Paulo2301-PC\Desktop\samp037_svr_R2-1-1_win32\pawno\include\YSI\y_utils.inc(558) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Nelson.Paulo2301-PC\Desktop\samp037_svr_R2-1-1_win32\pawno\include\YSI\y_malloc.inc(216) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Nelson.Paulo2301-PC\Desktop\samp037_svr_R2-1-1_win32\pawno\include\YSI\y_hooks/impl.inc(1983) : warning 219: local variable "password" shadows a variable at a preceding level C:\Users\Nelson.Paulo2301-PC\Desktop\LoginRegister.pwn(54) : error 010: invalid function or declaration C:\Users\Nelson.Paulo2301-PC\Desktop\LoginRegister.pwn(63) : error 021: symbol already defined: "format" C:\Users\Nelson.Paulo2301-PC\Desktop\LoginRegister.pwn(65) : error 010: invalid function or declaration C:\Users\Nelson.Paulo2301-PC\Desktop\LoginRegister.pwn(69) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Nelson.Paulo2301-PC\Desktop\LoginRegister.pwn(275) : warning 219: local variable "password" shadows a variable at a preceding level C:\Users\Nelson.Paulo2301-PC\Desktop\LoginRegister.pwn(356) : warning 203: symbol is never used: "admin" C:\Users\Nelson.Paulo2301-PC\Desktop\LoginRegister.pwn(356) : warning 203: symbol is never used: "deaths" C:\Users\Nelson.Paulo2301-PC\Desktop\LoginRegister.pwn(356) : warning 203: symbol is never used: "kills" C:\Users\Nelson.Paulo2301-PC\Desktop\LoginRegister.pwn(356) : warning 203: symbol is never used: "money" C:\Users\Nelson.Paulo2301-PC\Desktop\LoginRegister.pwn(356) : warning 203: symbol is never used: "password" C:\Users\Nelson.Paulo2301-PC\Desktop\LoginRegister.pwn(356) : warning 203: symbol is never used: "score" C:\Users\Nelson.Paulo2301-PC\Desktop\LoginRegister.pwn(356) : warning 203: symbol is never used: "string" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
---------------------------------------------------------------------------------------------------------------------------------
Coded script :
Код:
enum pInfo { pPass, pCash, pAdmin, pKills, pDeaths, pScore } new PlayerInfo[MAX_PLAYERS][pInfo]; forward LoadUser_data(playerid,name[],value[]); public LoadUser_data(playerid,name[],value[]) { INI_Int("Password",PlayerInfo[playerid][pPass]); INI_Int("Cash",PlayerInfo[playerid][pCash]); INI_Int("Score",PlayerInfo[playerid][pScore]); INI_Int("Admin",PlayerInfo[playerid][pAdmin]); INI_Int("Kills",PlayerInfo[playerid][pKills]); INI_Int("Deaths",PlayerInfo[playerid][pDeaths]); return 1; } if (strcmp("/stats" cmdtext, true, 10) == 0) { new password = PlayerInfo[playerid][pPass]; new money = PlayerInfo[playerid][pCash]; new deaths = PlayerInfo[playerid][pDeaths]; new kills = PlayerInfo[playerid][pKills]; new score = PlayerInfo[playerid][pScore]; new admin = PlayerInfo[playerid][pAdmin]; new string[500]; format(string,sizeof(string),"Password: %s | Money: %d | Deaths: %d | Kills: %d | Score: %d | Admin: %d ",password,money,deaths,kills,score,admin); SendClientMessage(playerid,COLOR_GREEN,string); return 1; }