PDA

View Full Version : Undefined please help


Eyex
30/06/2019, 11:30 AM
//new Float:Health;

new Float:xaa, Float:yaa, Float:zaa;
GetPlayerPos(playerid, xaa, yaa, zaa);

pInfo[playerid][spawnx] = xaa;
pInfo[playerid][spawny] = yaa;
pInfo[playerid][spawnz] = zaa;

if[vonszol(playerid] > -1 && vonszolva[vonszol(playerid)] == 1)
{
new Float:pos[3], vwje, intje;
vwje = GetPlayerVirtualWorld(playerid);
intje = GetPlayerInterior(playerid);
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPosEx(vonszol[playerid], pos[0]+1, pos[1]+1, pos[2]);
SetPlayerInterior(vonszol[playerid], intje);
SetPlayerVirtualWorld(vonszol[playerid], vwje);
}
if(Maszk[playerid] == 1)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(AdminSzoliban[i] == 0)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(i, playerid, false);
}
}
}
}


C:\Users\Eyex\Downloads\Riverwood RP\Riverwood RP\pawno\include\sscanf2.inc(69) : warning 235: public function lacks forward declaration (symbol "OnNPCModeInit")
C:\Users\Eyex\Downloads\Riverwood RP\Riverwood RP\pawno\include\mSelection.inc(72) : warning 219: local variable "ItemAmount" shadows a variable at a preceding level
C:\Users\Eyex\Downloads\Riverwood RP\Riverwood RP\pawno\include\mSelection.inc(84) : warning 219: local variable "ItemAmount" shadows a variable at a preceding level
C:\Users\Eyex\Downloads\Riverwood RP\Riverwood RP\pawno\include\inventory.inc(133) : warning 219: local variable "id" shadows a variable at a preceding level
C:\Users\Eyex\Downloads\Riverwood RP\Riverwood RP\gamemodes\West.pwn(3034) : warning 202: number of arguments does not match definition
C:\Users\Eyex\Downloads\Riverwood RP\Riverwood RP\gamemodes\West.pwn(3035) : warning 202: number of arguments does not match definition
C:\Users\Eyex\Downloads\Riverwood RP\Riverwood RP\gamemodes\West.pwn(3036) : warning 202: number of arguments does not match definition
C:\Users\Eyex\Downloads\Riverwood RP\Riverwood RP\gamemodes\West.pwn(3037) : warning 202: number of arguments does not match definition
C:\Users\Eyex\Downloads\Riverwood RP\Riverwood RP\gamemodes\West.pwn(3039) : warning 202: number of arguments does not match definition
C:\Users\Eyex\Downloads\Riverwood RP\Riverwood RP\gamemodes\West.pwn(3040) : warning 202: number of arguments does not match definition
C:\Users\Eyex\Downloads\Riverwood RP\Riverwood RP\gamemodes\West.pwn(13154) : error 029: invalid expression, assumed zero
C:\Users\Eyex\Downloads\Riverwood RP\Riverwood RP\gamemodes\West.pwn(13154) : error 017: undefined symbol "vonszol"
C:\Users\Eyex\Downloads\Riverwood RP\Riverwood RP\gamemodes\West.pwn(13154) : error 029: invalid expression, assumed zero
C:\Users\Eyex\Downloads\Riverwood RP\Riverwood RP\gamemodes\West.pwn(13154) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


This is a code an error everyone a good idea?

zeus99
30/06/2019, 12:40 PM
try

//new Float:Health;
new vonszol;
vonszol = Application vonszol <change it
new Float:xaa, Float:yaa, Float:zaa;
GetPlayerPos(playerid, xaa, yaa, zaa);

pInfo[playerid][spawnx] = xaa;
pInfo[playerid][spawny] = yaa;
pInfo[playerid][spawnz] = zaa;

if[vonszol(playerid] > -1 && vonszolva[vonszol(playerid)] == 1)
{
new Float : pos[3], vwje, intje;
vwje = GetPlayerVirtualWorld(playerid);
intje = GetPlayerInterior(playerid);
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPosEx(vonszol[playerid], pos[0]+1, pos[1]+1, pos[2]);
SetPlayerInterior(vonszol[playerid], intje);
SetPlayerVirtualWorld(vonszol[playerid], vwje);
}
if(Maszk[playerid] == 1)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(AdminSzoliban[i] == 0)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(i, playerid, false);
}
}
}
}

khRamin78
30/06/2019, 12:48 PM
if[vonszol(playerid] > -1 && vonszolva[vonszol(playerid)] == 1)
TO
if(vonszol(playerid) > -1 && vonszolva[vonszol(playerid)] == 1)

Eyex
30/06/2019, 08:11 PM
if[vonszol(playerid] > -1 && vonszolva[vonszol(playerid)] == 1)

the pawno say this line in error :/

Koreadars
01/07/2019, 07:18 PM
if(vonszol(playerid) > -1 && vonszolva[vonszol(playerid)] == 1)
Or:
if(vonszol[playerid] > -1 && vonszolva[vonszol[playerid]] == 1)

GTLS
02/07/2019, 09:56 AM
Make sure your script has
new vonszol[MAX_PLAYERS]; on top of the GM.. Show the lines 3034-3040 for solving warnings. other warnings are from the includes. They are not placed in correct order, or you have included something twice.