Wysłany: 2013-05-24, 22:37
panmajster
Wiek: 42 Na forum: 4787 dni Posty: 154
Nick w MP: NieWazne
Piwa : 124
Witam.
Zrobi?em sobie licznik z gps'em, w skrypcie dzia?a pi?knie ale po wrzuceniu do gamemod'e co? si? dzieje takiego :
Kod:
C:\Users\P\Desktop\serwer truck\gamemodes\w.pwn(4790) : error 017: undefined symbol "x"
C:\Users\P\Desktop\serwer truck\gamemodes\w.pwn(4793) : error 017: undefined symbol "x"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Linijki :
Kod:
GetPlayerPos(playerid, x,y,z);
oraz
if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4])
ca?y kod :
stock GetPlayer2DZone(playerid, zoneada[], len)
{
GetPlayerPos(playerid, x,y,z);
for(new i = 0; i != sizeof(gSAZones); i++ )
{
if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4])
{
return format(zoneada, len, gSAZones[i][SAZONE_NAME], 0);
}
}
return 0;
}
Za pomoc daje piwka
Pozdrawiam
Wysłany: 2013-05-24, 22:39
IgrexolonO
Wiek: 34 Na forum: 6809 dni Posty: 1386
Piwa : 1062
"panmajster" napisał/a :Witam.
Pozdrawiam
A gdzie Ty to niby chcesz getowa??
Nad GetPlayerPos
Kod: new Float:x, Float:y, Float:z;
Tagi: undefined :: symbol :: quotxquot
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: