30.08.2010, 10:26
if(strcmp(cmd, "/lsairport", true) == 0)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string), "%s Has Teleport To LS Airport!",name);
SetPlayerPos(playerid,1984.3177,-2473.2759,13.5469);
SendClientMessage(playerid, COLOR_BRIGHTRED,"Welcome to Los Santos Airport!");
SendClientMessageToAll(COLOR_PINK,string);
return 1;
}
Just delete new string[128];
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string), "%s Has Teleport To LS Airport!",name);
SetPlayerPos(playerid,1984.3177,-2473.2759,13.5469);
SendClientMessage(playerid, COLOR_BRIGHTRED,"Welcome to Los Santos Airport!");
SendClientMessageToAll(COLOR_PINK,string);
return 1;
}
Just delete new string[128];