Radim komandu kojom bi dobio popis svih zatvorenika ali negdje sam sjebo..ne pokazuje mi errore nego u igri kad sam iso testirat ne radi onak kak bi trebalo..
Evo..recite u cemu je problem..
if(strcmp(cmd, "/zatvorenici",true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(10.0, playerid, 2571.1138,-1292.3827,1037.7734))
{
if(IsACop(playerid))
{
SendClientMessage(playerid, COLOR_GREEN, "______-=INFORMACIJE IZ KOMPUJUTORA=-_______");
SendClientMessage(playerid, COLOR_WHITE, "|_______-=Popis svih zatvorenika=-________|");
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pJailed] == 1)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "%s%s", string,giveplayer);
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste clan PD/FBI/Los Santos Security !");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste u strazarskoj sobi u zatvoru!");
}
}//not connected
return 1;
}
Formatovo si ime igraÄa ali nisi poslao teksta (SendClientMessage).
Mozes pojasnit malo bolje? xD njub sam xD
SendClientMessage(playerid, Boja, string); thumbsup
i to stavi ispod format(string, sizeof(string), "%s%s", string,giveplayer);
E to care evo radi..Hvala puno ;)
nema problema ;) lock