help in running - 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: help in running (
/showthread.php?tid=465460)
help in running -
Duduzinho - 22.09.2013
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
Код:
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;
}
here is the function loading Racing
Код:
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;
}
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!
Re: help in running -
Duduzinho - 22.09.2013
@ Someone UP ?
Re: help in running -
Duduzinho - 22.09.2013
@ Someone UP 2 ?