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.
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(playerid, name, sizeof(name));
format(str, sizeof(str), User_Path, name);
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(230, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.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(playerid, name, sizeof(name));
TogglePlayerSpectating(playerid, true);
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadPlayerData", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, Dialog_Log, DIALOG_STYLE_PASSWORD, "Login", "There's no need to fear, because your here\n\nWelcome back, please login:", "Login", "Quit");
}
else
{
ShowPlayerDialog(playerid, Dialog_Reg, DIALOG_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(playerid, name[], value[]);
public LoadPlayerData(playerid, name[], 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(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
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(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case Dialog_Reg:
{
if(!response) SendClientMessage(playerid, Col_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(playerid, Dialog_Reg, DIALOG_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], 129, inputtext);
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(playerid, Col_Green, "SUCCESS: Registration Complete.");
PlayerInfo[playerid][LoggedIn] = true;
TogglePlayerSpectating(playerid, false);
return 1;
}
case Dialog_Log:
{
if(!response) SendClientMessage(playerid, Col_Red, "ERROR: You failed to login, it seems like you were the wrong hero/villain"); Kick(playerid);
else
{
new hashpass[129];
WP_Hash(hashpass, sizeof(hashpass), inputtext);
if(!strcmp(hashpass, PlayerInfo[playerid][Password]))
{
SetPlayerScore(playerid, PlayerInfo[playerid][Level]);
GivePlayerMoney(playerid, PlayerInfo[playerid][Cash]);
SendClientMessage(playerid, Col_Green, "SUCCESS: Welcome back, login successful.");
PlayerInfo[playerid][LoggedIn] = true;
TogglePlayerSpectating(playerid, false);
}
else
{
SendClientMessage(playerid, Col_Red, "ERROR: Incorrect Password.");
ShowPlayerDialog(playerid, Dialog_Log, DIALOG_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(playerid, clickedplayerid, source)
{
return 1;
}