[POMOC] playerid


Započeo TiXoR_, Decembar 31, 2010, 11:01:04 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Meni treba pomoć oko player id
Ja sam ovo ubacija :
for(new h = 0; h < sizeof(HouseInfo); h++)
				{
					if(PlayerToPoint(2.0, playerid, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
					{
						if(HouseInfo[h][hOwned] == 1)
						{
							if(HouseInfo[h][hRentabil] == 0)
							{
								format(string, sizeof(string), "~g~Vlasnik kuce~n~~w~%s~n~Level: %d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);
							}
							else
							{
								format(string, sizeof(string), "~g~Vlasnik kuce~n~~w~%s~n~Rentanje: %d$ Level: %d~n~~y~(/rentroom)",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);
							}

							TextDrawSetString(House, string);
							TextDrawShowForPlayer(playerid,House);
							SetTimerEx("UnistavanjeTextovaZaKucu",6000,0,"d",playerid);
							return 1;
						}
						else
						{
							format(string, sizeof(string), "~g~Za podaju~n~~w~%s~n~%d$~n~Level: %d ~n~~y~(/buyhouse)",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);
						}
						TextDrawSetString(House, string);
						TextDrawShowForPlayer(playerid,House);
						SetTimerEx("UnistavanjeTextovaZaKucu",6000,0,"d",playerid);
						return 1;
					}
				}

Prvo je bilo kao za "i" da nije definirano pa sam sve stavio pod "playerid"

L:\Users\Dino\Documents\Dino\SAMP\SoniX RolePlay\gamemodes\gf.pwn(6705) : error 017: undefined symbol "playerid"
L:\Users\Dino\Documents\Dino\SAMP\SoniX RolePlay\gamemodes\gf.pwn(6719) : error 017: undefined symbol "playerid"
L:\Users\Dino\Documents\Dino\SAMP\SoniX RolePlay\gamemodes\gf.pwn(6720) : error 017: undefined symbol "playerid"
L:\Users\Dino\Documents\Dino\SAMP\SoniX RolePlay\gamemodes\gf.pwn(6728) : error 017: undefined symbol "playerid"
L:\Users\Dino\Documents\Dino\SAMP\SoniX RolePlay\gamemodes\gf.pwn(6729) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

Jel može pomoć? :P

Da to kojim slucajem nije GF???
Mozda u tome nije playerid nego i?
Probaj ovako:

Kod: c
for(new h = 0; h < sizeof(HouseInfo); h++)
				{
					if(PlayerToPoint(2.0,i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
					{
						if(HouseInfo[h][hOwned] == 1)
						{
							if(HouseInfo[h][hRentabil] == 0)
							{
								format(string, sizeof(string), "~g~Vlasnik kuce~n~~w~%s~n~Level: %d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);
							}
							else
							{
								format(string, sizeof(string), "~g~Vlasnik kuce~n~~w~%s~n~Rentanje: %d$ Level: %d~n~~y~(/rentroom)",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);
							}

							TextDrawSetString(House, string);
							TextDrawShowForPlayer(i,House);
							SetTimerEx("UnistavanjeTextovaZaKucu",6000,0,"d",i);
							return 1;
						}
						else
						{
							format(string, sizeof(string), "~g~Za podaju~n~~w~%s~n~%d$~n~Level: %d ~n~~y~(/buyhouse)",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);
						}
						TextDrawSetString(House, string);
						TextDrawShowForPlayer(i,House);
						SetTimerEx("UnistavanjeTextovaZaKucu",6000,0,"d",i);
						return 1;
					}
				}


Ako ne valja reci nam pod cime ti to stoji (msm na OnGameModeInit i ta cuda)...

[]Flynâ„¢

*

Never look down on anybody unless you're helping them up.

@eXtreme

Citat: RedMan poslato Decembar 31, 2010, 11:01:04 PRE PODNEPrvo je bilo kao za "i" da nije definirano pa sam sve stavio pod "playerid"