31.07.2015, 14:16
Tente com scanff
PHP код:
if(strcmp(cmd, "/iniciarcorrida", true) == 0)
{
new str[128];
if(CallRemoteFunction("GetPlayerAdminLevel","i",playerid) < 1) return SendClientMessage(playerid,0x66CCFFAA,StringTable[8]);
if(BuildRace != 0) return SendClientMessage(playerid, RED, "Nгo й possнvel. Corrida automбtica estб ativada!");
if(RaceBusy == 0x01 || RaceStarted == 1) return SendClientMessage(playerid, RED, "Hб alguйm a construзгo de uma corrida!");
if(sscanf(params, "s[128]", str)) return SendClientMessage(playerid, -1, "Use /Iniciarcorrida [Nome-Da-Corrida]");
LoadRace(playerid, str);
return 1;
}