Skripta koju koristim: Wild Wild West OWAA (Moj GameMode od nule)
Detaljan opis problema: Trebam komandu (npr. /gotoxyz [koordinati]) da kad netko upise
"/gotoxyz 2457.731689,-1054.671875,59.959186"
Da ga teleportira do koordinata "2457.731689,-1054.671875,59.959186"
Dio skripte: /-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/
Mozete li pomoc?
Ako imas slucajno raven's-ov GM na kompu potrazi komandu "/xgoto"..ja sad nemogu nac..nemam raven :D
Ravens editaj ako ti pase
dcmd_xgoto(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 5)
{
new Float:x, Float:y, Float:z;
new string[100];
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Korištenje: \"/xgoto <X Float> <Y Float> <Z Float>\"");
else
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
}
else
{
SafeSetPlayerPos(playerid, x, y, z);
}
format(string, sizeof(string), "Postavili ste koordinate na %f, %f, %f", x, y, z);
SendClientMessage(playerid, 0xBBBBBBAA, string);
}
}
return 1;
}
Citat: ♪♪Kruno1407ッ poslato Maj 03, 2011, 19:27:44 POSLE PODNE
Ako imas slucajno raven's-ov GM na kompu potrazi komandu "/xgoto"..ja sad nemogu nac..nemam raven :D
Fala skinio sam idem pogledat
Citat: [Banana$]ReadMe.txt poslato Maj 03, 2011, 19:28:12 POSLE PODNE
Citat: ♪♪Kruno1407ッ poslato Maj 03, 2011, 19:27:44 POSLE PODNE
Ako imas slucajno raven's-ov GM na kompu potrazi komandu "/xgoto"..ja sad nemogu nac..nemam raven :D
Fala skinio sam idem pogledat
Evo nemoras trazit
Citat: $--L84S--$ poslato Maj 03, 2011, 19:27:59 POSLE PODNE
dcmd_xgoto(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 5)
{
new Float:x, Float:y, Float:z;
new string[100];
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Korištenje: \"/xgoto <X Float> <Y Float> <Z Float>\"");
else
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
}
else
{
SafeSetPlayerPos(playerid, x, y, z);
}
format(string, sizeof(string), "Postavili ste koordinate na %f, %f, %f", x, y, z);
SendClientMessage(playerid, 0xBBBBBBAA, string);
}
}
return 1;
}
Citat: $--L84S--$ poslato Maj 03, 2011, 19:28:45 POSLE PODNE
Citat: [Banana$]ReadMe.txt poslato Maj 03, 2011, 19:28:12 POSLE PODNE
Citat: ♪♪Kruno1407ッ poslato Maj 03, 2011, 19:27:44 POSLE PODNE
Ako imas slucajno raven's-ov GM na kompu potrazi komandu "/xgoto"..ja sad nemogu nac..nemam raven :D
Fala skinio sam idem pogledat
Evo nemoras trazit
Citat: $--L84S--$ poslato Maj 03, 2011, 19:27:59 POSLE PODNE
dcmd_xgoto(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 5)
{
new Float:x, Float:y, Float:z;
new string[100];
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Korištenje: \"/xgoto <X Float> <Y Float> <Z Float>\"");
else
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
}
else
{
SafeSetPlayerPos(playerid, x, y, z);
}
format(string, sizeof(string), "Postavili ste koordinate na %f, %f, %f", x, y, z);
SendClientMessage(playerid, 0xBBBBBBAA, string);
}
}
return 1;
}
E JBG-a KAD ME JE*E DCMD....
Mozes li stavit u ono obicno: if(strcmp(cmd, "/xgoto", true) == 0)
??????
if(strcmp(cmd, "/xgoto", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 5)
{
new Float:x, Float:y, Float:z;
new string[100];
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Korištenje: \"/xgoto <X Float> <Y Float> <Z Float>\"");
else
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
}
else
{
SafeSetPlayerPos(playerid, x, y, z);
}
format(string, sizeof(string), "Postavili ste koordinate na %f, %f, %f", x, y, z);
SendClientMessage(playerid, 0xBBBBBBAA, string);
}
}
return 1;
}
so hard? Btw. moras imati sscanf