02.12.2010, 10:37
Hi guys I make Gametextforplayer in Gamemodeint But I can't see it...
My codes I made
I can see pickup but gametext can't??
My codes I made
pawn Код:
for(new i = 1;i < MAX_PLAYERS;i++)
{
new string[256];
for(new l = 0;l < sizeof(LoadInfo);l++)
{
CreatePickup(1239, 1, LoadInfo[l][getposX], LoadInfo[l][getposY], LoadInfo[l][getposZ],0);
if(IsPlayerInRangeOfPoint(i,10,LoadInfo[l][getposX], LoadInfo[l][getposY], LoadInfo[l][getposZ]))
{
format(string, sizeof(string), "~r~Name: %s~n~~w~Destination: %s~n~Price: %d",LoadInfo[l][Name],LoadInfo[l][Destination],LoadInfo[l][Price] );
GameTextForPlayer(i, string, 3000, 2);
}
}
}
pawn Код:
CreatePickup(1239, 1, LoadInfo[l][getposX], LoadInfo[l][getposY], LoadInfo[l][getposZ],0);