04.05.2015, 16:17
Hello when i dont put pInt and pVW in the PlayerInfo list it saying pVW and pInt underfined symbol
when i put it in the list im getting this errors:
I created this:
But it gives me the error on another place:
when i put it in the list im getting this errors:
PHP код:
(3423) : warning 219: local variable "pVW" shadows a variable at a preceding level
(3423) : warning 219: local variable "pInt" shadows a variable at a preceding level
(3424) : error 022: must be lvalue (non-constant)
(3425) : error 022: must be lvalue (non-constant)
(3423) : warning 203: symbol is never used: "pInt"
(3423) : warning 203: symbol is never used: "pVW"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
PHP код:
//Grove Shop
if (IsPlayerInRangeOfPoint(playerid,8.0, 2514.3076, -1691.4675, 14.0460)) {
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pVW] = 0;
SetPlayerInterior(playerid, 6);
PlayerInfo[playerid][pInt] = 6;
Streamer_UpdateEx(playerid,296.9661,-111.9678,1001.5156 + 1100);
SetPlayerPos(playerid,296.9661,-111.9678,1001.5156 + 1100);
SetPlayerFacingAngle(playerid, 180);
Streamer_Update(playerid);
}
PHP код:
else if(dialogid == DIALOG_TEAMEDIT_SPAWN)
{
if(response == 0)
{
DeletePVar(playerid, "TeamEdit");
DeletePVar(playerid, "TeamID");
}
else
{
new team = GetPVarInt(playerid, "TeamID");
new pVW, pInt, Float:x, Float:y, Float:z, Float:a;
pVW = GetPlayerVirtualWorld(playerid);
pInt = GetPlayerInterior(playerid);
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, a);
TeamInfo[team][tsX] = x;
TeamInfo[team][tsY] = y;
TeamInfo[team][tsZ] = z;
TeamInfo[team][tsA] = a;
TeamInfo[team][tInt] = pInt;
TeamInfo[team][tVW] = pVW;
SendClientMessage(playerid, COLOR_WHITE, "You successfully adjusted the spawn!");
g_mysql_save_team(team);
DeletePVar(playerid, "TeamEdit");
DeletePVar(playerid, "TeamID");
}
}