SA-MP Forums Archive
Commands dont work - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Commands dont work (/showthread.php?tid=575539)



Commands dont work - Charalambos26 - 27.05.2015

All the gamemodes I tried yet, the /setlevel (my id) (level) command didn't worked
it just told my Usage: /setlevel id level
ALL the Gamemodes!
Is it maybe because I need an extra plugin or something?
Help pls.


Re: Commands dont work - PepsiCola23 - 27.05.2015

Maybe you use the wrong cmd,give us the cmd


Re: Commands dont work - Charalambos26 - 27.05.2015

Код HTML:
<cmd: /setlevel (playerid, setvip, (0)>
 new str[110];
switch(pLang[i])
 if (playerid, Color_White)
lientMessage(playerid, COLOR_PINK, "[AVISO]: Estбs en una juerga de 20 captura! +6XP");
 new MessageStr2[170];
			format(MessageStr2,sizeof MessageStr2,"[ITS]: Team %s has captured {B700FF}%s", TeamName(playerid), ZName(zoneidd));
			return SendClientMessage(i, COLOR_SPRINGGREEN, MessageStr2);
SetPlayerScore(i, GetPlayerScore(i)+1);
  GivePlayerWeapon, (playerid, 36, 5000)
return 1;



Re: Commands dont work - AgusZ - 28.05.2015

Quote:
Originally Posted by Charalambos26
Посмотреть сообщение
Код HTML:
<cmd: /setlevel (playerid, setvip, (0)>
 new str[110];
switch(pLang[i])
 if (playerid, Color_White)
lientMessage(playerid, COLOR_PINK, "[AVISO]: Estбs en una juerga de 20 captura! +6XP");
 new MessageStr2[170];
			format(MessageStr2,sizeof MessageStr2,"[ITS]: Team %s has captured {B700FF}%s", TeamName(playerid), ZName(zoneidd));
			return SendClientMessage(i, COLOR_SPRINGGREEN, MessageStr2);
SetPlayerScore(i, GetPlayerScore(i)+1);
  GivePlayerWeapon, (playerid, 36, 5000)
return 1;
i ddnt know ur cmd,


Re: Commands dont work - SickAttack - 28.05.2015

Quote:
Originally Posted by Charalambos26
Посмотреть сообщение
Код HTML:
<cmd: /setlevel (playerid, setvip, (0)>
 new str[110];
switch(pLang[i])
 if (playerid, Color_White)
lientMessage(playerid, COLOR_PINK, "[AVISO]: Estбs en una juerga de 20 captura! +6XP");
 new MessageStr2[170];
			format(MessageStr2,sizeof MessageStr2,"[ITS]: Team %s has captured {B700FF}%s", TeamName(playerid), ZName(zoneidd));
			return SendClientMessage(i, COLOR_SPRINGGREEN, MessageStr2);
SetPlayerScore(i, GetPlayerScore(i)+1);
  GivePlayerWeapon, (playerid, 36, 5000)
return 1;
What kind of command is that? lol


Re: Commands dont work - ChromeAmazing - 28.05.2015

Quote:
Originally Posted by Charalambos26
Посмотреть сообщение
Код HTML:
<cmd: /setlevel (playerid, setvip, (0)>
 new str[110];
switch(pLang[i])
 if (playerid, Color_White)
lientMessage(playerid, COLOR_PINK, "[AVISO]: Estбs en una juerga de 20 captura! +6XP");
 new MessageStr2[170];
			format(MessageStr2,sizeof MessageStr2,"[ITS]: Team %s has captured {B700FF}%s", TeamName(playerid), ZName(zoneidd));
			return SendClientMessage(i, COLOR_SPRINGGREEN, MessageStr2);
SetPlayerScore(i, GetPlayerScore(i)+1);
  GivePlayerWeapon, (playerid, 36, 5000)
return 1;
Is that even a command?!

Use CMD: setlevel(playerid,params)


Re : Commands dont work - Slawiii - 28.05.2015

Do you have compiled your script ?


Re: Commands dont work - Charalambos26 - 28.05.2015

Yes I have successfully compiled it, still the save problem :/
All my cmds are that way.


Re: Commands dont work - Luis- - 28.05.2015

In all my years of scripting, I've never seen that type of command. What command processor do you use?


Re: Commands dont work - Charalambos26 - 28.05.2015

Quote:
Originally Posted by Luis-
Посмотреть сообщение
In all my years of scripting, I've never seen that type of command. What command processor do you use?
idk, but I never used other commands,
they worked well, but idk why they are bugging now.