Szerző Téma: World probléma  (Megtekintve 1279 alkalommal)

World probléma
« Dátum: 2012. December 18. - 07:28:25 »
0 Show voters
Hali!
Lenne egy ilyen parancsom, hibát nem ír rá a pawno, /world parancs fel is hozza a \"használat\" részét, de ha beírok utána egy számot (akár /world10 vagy /world 10), ismeretlen parancsot dob fel, és nem csinál semmit.
Tehát mi ezzel a paranccsal a gond?
Köszönöm elõre is a segítséget!
 

new cmd[128], idx;
cmd = strtok(cmdtext, idx);
SendRconCommand(\"unloadfs world\");
if (strcmp(cmdtext, \"/world\", true) == 0)
{
new tmp[128];
tmp = strtok(cmdtext, idx);
if(strlen(tmp) == 0) return SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Használat: /world szám. 0-2.000.000 -ig használható!\");
        SetPlayerVirtualWorld(playerid, strlen(tmp));
new worldid[32];
format(worldid, sizeof(worldid), \"Átállítottad a világotad, az új világod:{ffffff} %d\", GetPlayerVirtualWorld(playerid));
SendClientMessage(playerid,COLOR_LIGHTBLUE,worldid);
new string[128]; GetPlayerName(playerid,string,sizeof(string));
               format(string,sizeof(string),\"{828282}[Worldinfo] %s átállította a világját: %d\",string,GetPlayerVirtualWorld(playerid));
                SendMessageToRAdmins(0xff5500AA,string);
return 1;
}

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
World probléma
« Válasz #1 Dátum: 2012. December 18. - 13:37:11 »
0 Show voters
Ez egy megfelelõ leírás számodra :D Link: http://forum.sa-mp.com/showthread.php?t=361798

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal