Creating cmds + %s GetName();
#6

Quote:
Originally Posted by AbyssMorgan
View Post
PHP Code:

CMD
:sdm1(playerid){
    new 
Random random(sizeof(SDM1)); 
    
SetPlayerPos(playeridSDM1[Random][0], SDM1[Random][1], SDM1[Random][2]); 
    
SetPlayerFacingAngle(playeridSDM1[Random][3]); 
    
GameTextForPlayer(playerid,"~w~Welcome ~r~To ~g~Sniper ~p~DM ~y~Area-1.",3,5); 
    
ResetPlayerWeapons(playerid); 
    
SetPlayerHealth(playerid20); 
    
SetPlayerArmour(playerid0); 
    
SetPlayerSkin(playerid,102); 
    
GivePlayerWeapon(playerid3499999); 
    
GivePlayerWeapon(playerid461); 
    return 
1
}
CMD:cbdm1(playerid){
    new 
Random random(sizeof(SDM1)); 
    
SetPlayerPos(playeridCBDM1[Random][0], CBDM1[Random][1], CBDM1[Random][2]); 
    
SetPlayerFacingAngle(playeridCBDM1[Random][3]); 
    
GameTextForPlayer(playerid,"~w~Welcome ~r~To ~g~C-Bug ~p~DM ~y~Area-1.",3,5); 
    
ResetPlayerWeapons(playerid); 
    
SetPlayerHealth(playerid100); 
    
SetPlayerArmour(playerid100); 
    
SetPlayerSkin(playerid,102); 
    
GivePlayerWeapon(playerid2499999); 
    
GivePlayerWeapon(playerid2599999); 
    
GivePlayerWeapon(playerid3499999); 
    return 
1

Quote:
Originally Posted by Micko123
View Post
PHP Code:
CMD:sdm1(playeridparams[])
{
    new 
Random random(sizeof(SDM1));
    
SetPlayerPos(playeridSDM1[Random][0], SDM1[Random][1], SDM1[Random][2]);
    
SetPlayerFacingAngle(playeridSDM1[Random][3]);
    
GameTextForPlayer(playerid,"~w~Welcome ~r~To ~g~Sniper ~p~DM ~y~Area-1.",3,5);
    
ResetPlayerWeapons(playerid);
    
SetPlayerHealth(playerid20);
    
SetPlayerArmour(playerid0);
    
SetPlayerSkin(playerid,102);
    
GivePlayerWeapon(playerid3499999);
    
GivePlayerWeapon(playerid461);
    return 
1;
}
cmd:cbdm1(playeridparams[])
{
    new 
Random random(sizeof(SDM1));
     
SetPlayerPos(playeridCBDM1[Random][0], CBDM1[Random][1], CBDM1[Random][2]);
     
SetPlayerFacingAngle(playeridCBDM1[Random][3]);
     
GameTextForPlayer(playerid,"~w~Welcome ~r~To ~g~C-Bug ~p~DM ~y~Area-1.",3,5);
     
ResetPlayerWeapons(playerid);
     
SetPlayerHealth(playerid100);
     
SetPlayerArmour(playerid100);
     
SetPlayerSkin(playerid,102);
     
GivePlayerWeapon(playerid2499999);
     
GivePlayerWeapon(playerid2599999);
     
GivePlayerWeapon(playerid3499999);
     return 
1;

Now tell me what is wrong with code. What your code do now

EDIT: looks like i was a bit slow
PHP Code:
D:\Mini Games GM\gamemodes\OKTOKT.pwn(196) : error 029invalid expressionassumed zero
D
:\Mini Games GM\gamemodes\OKTOKT.pwn(196) : error 017undefined symbol "cmd_sdm1"
D:\Mini Games GM\gamemodes\OKTOKT.pwn(196) : error 029invalid expressionassumed zero
D
:\Mini Games GM\gamemodes\OKTOKT.pwn(196) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

And thnx for other help +rep
Reply


Messages In This Thread
Creating cmds + %s GetName(); - by oktokt1 - 17.06.2016, 06:32
Re: Creating cmds + %s GetName(); - by AbyssMorgan - 17.06.2016, 06:34
Re: Creating cmds + %s GetName(); - by Micko123 - 17.06.2016, 06:35
Re: Creating cmds + %s GetName(); - by oktokt1 - 17.06.2016, 06:40
Re: Creating cmds + %s GetName(); - by Micko123 - 17.06.2016, 06:42
Re: Creating cmds + %s GetName(); - by oktokt1 - 17.06.2016, 06:43
Re: Creating cmds + %s GetName(); - by Micko123 - 17.06.2016, 06:44
Re: Creating cmds + %s GetName(); - by oktokt1 - 17.06.2016, 06:45
Re: Creating cmds + %s GetName(); - by Micko123 - 17.06.2016, 06:47
Re: Creating cmds + %s GetName(); - by oktokt1 - 17.06.2016, 06:49
Re: Creating cmds + %s GetName(); - by Micko123 - 17.06.2016, 06:51
Re: Creating cmds + %s GetName(); - by oktokt1 - 17.06.2016, 06:51
Re: Creating cmds + %s GetName(); - by xTURBOx - 17.06.2016, 09:04
Re: Creating cmds + %s GetName(); - by oktokt1 - 17.06.2016, 09:08

Forum Jump:


Users browsing this thread: 2 Guest(s)