String help [URGENT]
#1

PHP код:
CMD:teleport(playeridparams[]) {
    if(
isnull(params)) return SendClientMessage(playerid, -1"/teleport [Name] (Name = Bayside/Octane Springs!");
    if(!
strcmp(params"Bayside"true)) {
        
SetPlayerPos(playerid, -2455.5942,2254.1738,4.9807);
        
SetPlayerFacingAngle(playerid0);
        
SetPlayerVirtualWorld(playerid1);
        
format(stringSOS"You have been teleported to Bayside Warehouse!");
        
SendClientMessage(playeridgreenstring);
    }
    else if(!
strcmp(params"Octane Springs"true)) {
        
SetPlayerPos(playerid397.8003,1157.7520,8.3481);
        
SetPlayerFacingAngle(playerid0);
        
SetPlayerVirtualWorld(playerid1);
        
format(stringSOS"You have been teleported to Octane Springs!");
        
SendClientMessage(playeridgreenstring);
    }
    else 
SendClientMessage(playerid, -1"Not a valid teleport name! (Available Teleport names - Bayside and Octane Springs");
    return 
1;

I need SSCANF and ZCMD instead of strcmp no matter what. Please send SSCANF and ZCMD not strcmp one.
Reply


Messages In This Thread
String help [URGENT] - by Commands - 05.11.2015, 13:57
Re: String help [URGENT] - by David (Sabljak) - 05.11.2015, 15:23
Re: String help [URGENT] - by Commands - 06.11.2015, 08:41
Re: String help [URGENT] - by David (Sabljak) - 06.11.2015, 09:05

Forum Jump:


Users browsing this thread: 1 Guest(s)