22.09.2013, 13:08
Ae Galera the Samp forum Help wanted a type I have a folder in scriptfiles Call race type wanted to make a Dialago to select races
With this command
here is the function loading Racing
Type the command you want appears in Dialago so that the dialago showing All Files scriptfiles Races Recorded folder ai ai I Select the Race
If anyone can help I already have several forms of tei gave more PVF not need help if someone can help me I thank you too
And I'm sorry my english Evil Grateful Thanks!
With this command
Код:
if(strcmp(cmd, "/Criarcorrida", true) == 0) { if(pAdmin[playerid] != 6) return SendClientMessage(playerid, RED, "[ > ] Voce nгo tem permisao para usar este comando"); if(AutomaticRace == true) return SendClientMessage(playerid, RED, "[ > ] Nгo й possнvel. a corrida automбtico estб habilitado!"); if(BuildRace != 0) return SendClientMessage(playerid, RED, "[ > ] Hб alguйm construindo uma corrida!"); if(RaceBusy == 0x01 || RaceStarted == 1) return SendClientMessage(playerid, RED, "[ > ] Nгo hб uma corrida atualmente. Espera primeiro atй o fim dessa corrida"); //AKI O ERRO if(isnull(cmd)) return SendClientMessage(playerid, RED, "[ > ] /Criarcorrida [Corrida Nome]"); //AKI O ERRO 2 LoadRace(playerid, cmd); return 1; }
Код:
function LoadRaceNames() { new rNameFile[64], string[64] ; format(rNameFile, sizeof(rNameFile), "/rRaceSystem/RaceNames/RaceNames.txt"); TotalRaces = dini_Int(rNameFile, "TotalRaces"); Loop(x, TotalRaces) { format(string, sizeof(string), "Race_%d", x), strmid(RaceNames[x], dini_Get(rNameFile, string), 0, 20, sizeof(RaceNames)); printf(">> Loaded Races: %s", RaceNames[x]); } return 1; }
If anyone can help I already have several forms of tei gave more PVF not need help if someone can help me I thank you too
And I'm sorry my english Evil Grateful Thanks!