Question about string
#1

The command is for helper's to set people to the PD in LS .. but i dont know how you get "Helper "Name" has tped to you the police department?"


Quote:

command(pdhim, playerid, params[]) {
new string[128], playerid, pname[24];
format(string, sizeof(string), "HELPER %s teleported you to the police department LS", GetName(GetPlayerID(inputtext)));
SendClientMessage(playerid, RED, string);
if(Player[playerid][Tester] >= 1)
SetPlayerPos(playerid, 1551.8000488281, 1670.4000244141, );
SetPlayerInterior(playerid, SpawnInt);
SetPlayerVirtualWorld(playerid, 0);
}

and here is another one i don't get with string ! :


Quote:

CMD:fixvw(playerid, params[])
{
new string[128], playerid, pname[24];

GetPlayerName(playerid, pname, sizeof(pname));

if(Player[playerid][Tester] >= 1)
{
SetPlayerVirtualWorld(playerid, 0);
format(string, sizeof(string), "HELPER %s has fixed your virtual world", pname);
SendClientMessage(playerid, RED, string);
}
return 1;
}

This upper this one doen'st work and the string goed to the one who typed the command .. and the comamnd doesn't work anymore after i did that string !
Reply


Messages In This Thread
Question about string - by ikbenremco - 30.11.2011, 14:21
Re: Question about string - by [MG]Dimi - 30.11.2011, 14:30
Re: Question about string - by ikbenremco - 30.11.2011, 14:35
Re: Question about string - by Kostas' - 30.11.2011, 14:37
Re: Question about string - by [MG]Dimi - 30.11.2011, 14:40
Re: Question about string - by ikbenremco - 30.11.2011, 17:05

Forum Jump:


Users browsing this thread: 1 Guest(s)