Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

YSI Errors (Maybe)

$
0
0
Code:

E:\SA-MP Server Scripts\[S]uper\pawno\include\sscanf2.inc(199) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Core\y_debug.inc(289) : warning 219: local variable "str" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Core\y_debug.inc(298) : warning 219: local variable "str" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\..\amx\amx_header.inc(295) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\..\amx\amx_header.inc(331) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\..\amx\amx_header.inc(335) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\..\amx\amx_header.inc(344) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\..\amx\amx_header.inc(407) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\..\amx\amx_header.inc(435) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\..\amx\amx_header.inc(439) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\..\amx\amx_header.inc(448) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\..\amx\amx_header.inc(490) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\..\amx\amx_header.inc(545) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\..\amx\amx_header.inc(549) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\..\amx\amx_header.inc(558) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\..\amx\asm.inc(757) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\..\amx\disasm.inc(276) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\y_amx.inc(421) : warning 219: local variable "str" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\y_amx.inc(1012) : warning 219: local variable "str" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\y_amx.inc(1034) : warning 219: local variable "str" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\y_amx.inc(1051) : warning 219: local variable "str" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(410) : warning 219: local variable "str" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(588) : warning 219: local variable "str" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(615) : warning 219: local variable "str" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(680) : warning 219: local variable "str" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(1077) : warning 219: local variable "str" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(1097) : warning 219: local variable "str" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_malloc/funcs.inc(435) : warning 219: local variable "str" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_malloc/funcs.inc(572) : warning 219: local variable "str" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_inline/impl.inc(337) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_inline/impl.inc(1468) : warning 219: local variable "str" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_inline/impl.inc(1735) : warning 219: local variable "str" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_stringhash.inc(306) : warning 219: local variable "str" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_hooks/impl.inc(193) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_hooks/impl.inc(268) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_hooks/impl.inc(302) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_hooks/impl.inc(341) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_hooks/impl.inc(395) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_hooks/impl.inc(428) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_hooks/impl.inc(443) : warning 219: local variable "str" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_hooks/impl.inc(596) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_hooks/impl.inc(639) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_hooks/impl.inc(661) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_hooks/impl.inc(742) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_hooks/impl.inc(813) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_hooks/impl.inc(829) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\y_ini/reading.inc(550) : warning 219: local variable "str" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\y_ini/writing.inc(381) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\y_ini/writing.inc(415) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\y_ini/writing.inc(435) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\y_ini/writing.inc(465) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\y_ini/writing.inc(486) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\y_ini/writing.inc(507) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\[S]uper\pawno\include\YSI\..\YSI_Storage\y_ini/writing.inc(527) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\Superhuman RP\gamemodes\shrp.pwn(19) : error 001: expected token: "-string end-", but found "-identifier-"
E:\SA-MP Server Scripts\Superhuman RP\gamemodes\shrp.pwn(22) : error 021: symbol already defined: "GetPlayerName"
E:\SA-MP Server Scripts\Superhuman RP\gamemodes\shrp.pwn(24) : error 010: invalid function or declaration
E:\SA-MP Server Scripts\Superhuman RP\gamemodes\shrp.pwn(74) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\Superhuman RP\gamemodes\shrp.pwn(77) : error 017: undefined symbol "UserPath"
E:\SA-MP Server Scripts\Superhuman RP\gamemodes\shrp.pwn(79) : error 017: undefined symbol "UserPath"
E:\SA-MP Server Scripts\Superhuman RP\gamemodes\shrp.pwn(90) : warning 219: local variable "name" shadows a variable at a preceding level
E:\SA-MP Server Scripts\Superhuman RP\gamemodes\shrp.pwn(261) : error 029: invalid expression, assumed zero
E:\SA-MP Server Scripts\Superhuman RP\gamemodes\shrp.pwn(261) : warning 215: expression has no effect
E:\SA-MP Server Scripts\Superhuman RP\gamemodes\shrp.pwn(261) : error 001: expected token: ";", but found "if"
E:\SA-MP Server Scripts\Superhuman RP\gamemodes\shrp.pwn(266) : warning 217: loose indentation
E:\SA-MP Server Scripts\Superhuman RP\gamemodes\shrp.pwn(267) : error 017: undefined symbol "UserPath"
E:\SA-MP Server Scripts\Superhuman RP\gamemodes\shrp.pwn(282) : error 029: invalid expression, assumed zero
E:\SA-MP Server Scripts\Superhuman RP\gamemodes\shrp.pwn(299) : error 001: expected token: ";", but found "}"
E:\SA-MP Server Scripts\Superhuman RP\gamemodes\shrp.pwn(311) : warning 203: symbol is never used: "name"
E:\SA-MP Server Scripts\Superhuman RP\gamemodes\shrp.pwn(311) : warning 203: symbol is never used: "str"
Pawn compiler 3.2.3664                          Copyright (c) 1997-2006, ITB CompuPhase


10 Errors.

Why am I getting these errors, can somebody take a look at my code-

PHP Code:

// INCLUDES
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <foreach>
#include <streamer>
#include <YSI\y_ini>

// DEFINES
#define Col_Grey 0xD2D2D2D2
#define Col_Red 0xAA3333AA
#define Col_Green 0x33AA33AA
#define Dialog_Log 1
#define Dialog_Reg 2
#define User_Path "/Users/%s.ini"

native WP_Hash(buffer[], len, const str[]);

User_Path(playerid)
{
    new 
str[36], name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof(name));
    
format(strsizeof(str), User_Pathname);
    return 
str;
}

enum
PInfo
{
    
Password[129],
    
AdminLevel,
    
Cash,
    
Level,
    
bool:LoggedIn,
    
bool:Superhuman
};
new 
PlayerInfo[MAX_PLAYERS][PInfo];

main()
{
    print(
"\n----------------------------------");
    print(
" -----Superhuman [[S]] Roleplay-----");
    print(
"----------------------------------\n");
}

public 
OnGameModeInit()
{
    
SetGameModeText("PVP-PVE");
    
AddPlayerClass(2301958.37831343.157215.3746269.1425000000);
    return 
1;
}

public 
OnGameModeExit()
{
    return 
1;
}

public 
OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746);
    return 
1;
}

public 
OnPlayerConnect(playerid)
{
    
PlayerInfo[playerid][AdminLevel] = 0;
    
PlayerInfo[playerid][Cash] = 0;
    
PlayerInfo[playerid][Level] = 0;
    
PlayerInfo[playerid][LoggedIn] = false;
    
PlayerInfo[playerid][Superhuman] = false;
    
    new 
name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof(name));
    
TogglePlayerSpectating(playeridtrue);
    if(
fexist(UserPath(playerid)))
    {
        
INI_ParseFile(UserPath(playerid), "LoadPlayerData", .bExtra true, .extra playerid);
        
ShowPlayerDialog(playeridDialog_LogDIALOG_STYLE_PASSWORD"Login""There's no need to fear, because your here\n\nWelcome back, please login:""Login""Quit");
    }
    else
    {
        
ShowPlayerDialog(playeridDialog_RegDIALOG_STYLE_INPUT"Register""Look up in the sky, is it a plane? a bird? oh no it's a new hero/villain.\n\nWelcome, please register""Register""Quit");
    }
    return 
1;
}

forward LoadPlayerData(playeridname[], value[]);
public 
LoadPlayerData(playeridname[], value[])
{
    
INI_String("Password"PlayerInfo[playerid][Password], 129);
    
INI_Int("AdminLevel"PlayerInfo[playerid][AdminLevel]);
    
INI_Int("Cash"PlayerInfo[playerid][Cash]);
    
INI_Int("Level"PlayerInfo[playerid][Level]);
    return 
1;
}

public 
OnPlayerDisconnect(playeridreason)
{
    return 
1;
}

public 
OnPlayerSpawn(playerid)
{
    return 
1;
}

public 
OnPlayerDeath(playeridkilleridreason)
{
    return 
1;
}

public 
OnVehicleSpawn(vehicleid)
{
    return 
1;
}

public 
OnVehicleDeath(vehicleidkillerid)
{
    return 
1;
}

public 
OnPlayerText(playeridtext[])
{
    return 
1;
}

public 
OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    return 
1;
}

public 
OnPlayerExitVehicle(playeridvehicleid)
{
    return 
1;
}

public 
OnPlayerStateChange(playeridnewstateoldstate)
{
    return 
1;
}

public 
OnPlayerEnterCheckpoint(playerid)
{
    return 
1;
}

public 
OnPlayerLeaveCheckpoint(playerid)
{
    return 
1;
}

public 
OnPlayerEnterRaceCheckpoint(playerid)
{
    return 
1;
}

public 
OnPlayerLeaveRaceCheckpoint(playerid)
{
    return 
1;
}

public 
OnRconCommand(cmd[])
{
    return 
1;
}

public 
OnPlayerRequestSpawn(playerid)
{
    return 
1;
}

public 
OnObjectMoved(objectid)
{
    return 
1;
}

public 
OnPlayerObjectMoved(playeridobjectid)
{
    return 
1;
}

public 
OnPlayerPickUpPickup(playeridpickupid)
{
    return 
1;
}

public 
OnVehicleMod(playeridvehicleidcomponentid)
{
    return 
1;
}

public 
OnVehiclePaintjob(playeridvehicleidpaintjobid)
{
    return 
1;
}

public 
OnVehicleRespray(playeridvehicleidcolor1color2)
{
    return 
1;
}

public 
OnPlayerSelectedMenuRow(playeridrow)
{
    return 
1;
}

public 
OnPlayerExitedMenu(playerid)
{
    return 
1;
}

public 
OnPlayerInteriorChange(playeridnewinterioridoldinteriorid)
{
    return 
1;
}

public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    return 
1;
}

public 
OnRconLoginAttempt(ip[], password[], success)
{
    return 
1;
}

public 
OnPlayerUpdate(playerid)
{
    return 
1;
}

public 
OnPlayerStreamIn(playeridforplayerid)
{
    return 
1;
}

public 
OnPlayerStreamOut(playeridforplayerid)
{
    return 
1;
}

public 
OnVehicleStreamIn(vehicleidforplayerid)
{
    return 
1;
}

public 
OnVehicleStreamOut(vehicleidforplayerid)
{
    return 
1;
}

public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    switch(
dialogid)
    {
        case 
Dialog_Reg:
        {
            if(!
responseSendClientMessage(playeridCol_Red"ERROR: You failed to register, it seems like you were the wrong hero/villain"); Kick(playerid);
            else if(
isnull(inputtext))
            {
                
SendClientMessage(playerid, -1"Enter your desired password.");
                return 
ShowPlayerDialog(playeridDialog_RegDIALOG_STYLE_INPUT"Register""Look up in the sky, is it a plane? a bird? oh no it's a new hero/villain.\n\nWelcome, please register""Register""Quit");
            }
                
WP_Hash(PlayerInfo[playerid][Password], 129inputtext);
                new 
INI:file INI_Open(UserPath(playerid));
                
INI_SetTag(file"PlayerData");
                
INI_WriteString(file"Password"PlayerInfo[playerid][Password]);
                
INI_WriteInt(file"AdminLevel"0);
                
INI_WriteInt(file"Cash"0);
                
INI_WriteInt(file"Level"0);
                
INI_Close(file);
                
SendClientMessage(playeridCol_Green"SUCCESS: Registration Complete.");
                
PlayerInfo[playerid][LoggedIn] = true;
                
TogglePlayerSpectating(playeridfalse);
                return 
1;
        }
        case 
Dialog_Log:
        {
            if(!
responseSendClientMessage(playeridCol_Red"ERROR: You failed to login, it seems like you were the wrong hero/villain"); Kick(playerid);
            else
            {
                new 
hashpass[129];
                
WP_Hash(hashpasssizeof(hashpass), inputtext);
                if(!
strcmp(hashpassPlayerInfo[playerid][Password]))
                {
                    
SetPlayerScore(playeridPlayerInfo[playerid][Level]);
                    
GivePlayerMoney(playeridPlayerInfo[playerid][Cash]);
                    
SendClientMessage(playeridCol_Green"SUCCESS: Welcome back, login successful.");
                    
PlayerInfo[playerid][LoggedIn] = true;
                    
TogglePlayerSpectating(playeridfalse);
                }
                
                else
                 {
                    
SendClientMessage(playeridCol_Red"ERROR: Incorrect Password.");
                    
ShowPlayerDialog(playeridDialog_LogDIALOG_STYLE_PASSWORD"Login""There's no need to fear, because your here\n\nWelcome back, please login:""Login""Quit")
                }
                return 
1;
            }
        }
    }
    return 
0;
}

public 
OnPlayerClickPlayer(playeridclickedplayeridsource)
{
    return 
1;


Help me, please.

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>