Small but wierd problem.. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Small but wierd problem.. (
/showthread.php?tid=449630)
Small but wierd problem.. -
Brandon_More - 09.07.2013
Код:
case 6:
{
new zone[ 32 ], tmp[ 40 ];
for(new i; i < sizeof(biz); i++)
format(tmp, sizeof(tmp), "%s.txt", biz[i][bizname]);
if(!strcmp(biz[i][bizbuyable], false))
GetZone(biz[i][bizenter_x],biz[i][bizenter_y],biz[i][bizenter_z], zone);
format(iStr, sizeof(iStr), "[ID: %d] [Name: %s] [Tax: %d%%] [Location: %s]", i, NoUnderscore(biz[i][biztext]), dini_Int(tmp,"taxrate"), zone);
ShowPlayerDialog(playerid, 1053, "Real Estate Businesses", iStr, "Ok","");
}
Код:
C:\Users\Brandon\Documents\Projects (Coding)\LS Generation Roleplay\gamemodes\Mafia02.pwn(5764) : error 017: undefined symbol "i"
C:\Users\Brandon\Documents\Projects (Coding)\LS Generation Roleplay\gamemodes\Mafia02.pwn(5765) : error 017: undefined symbol "i"
C:\Users\Brandon\Documents\Projects (Coding)\LS Generation Roleplay\gamemodes\Mafia02.pwn(5766) : error 017: undefined symbol "i"
C:\Users\Brandon\Documents\Projects (Coding)\LS Generation Roleplay\gamemodes\Mafia02.pwn(5767) : error 035: argument type mismatch (argument 3)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Noob scripting aknow
Re : Small but wierd problem.. -
yusei - 09.07.2013
try :
PHP код:
case 6:
{
new zone[ 32 ], tmp[ 40 ];
for(new i; i < sizeof(biz); i++)
{
format(tmp, sizeof(tmp), "%s.txt", biz[i][bizname]);
if(!strcmp(biz[i][bizbuyable] == false))
{
GetZone(biz[i][bizenter_x],biz[i][bizenter_y],biz[i][bizenter_z], zone);
format(iStr, sizeof(iStr), "[ID: %d] [Name: %s] [Tax: %d%%] [Location: %s]", i,NoUnderscore(biz[i][biztext]), dini_Int(tmp,"taxrate"), zone);
ShowPlayerDialog(playerid, 1053, "Real Estate Businesses", iStr, "Ok","");
}
}
}