Jetpack Command
#5

Quote:
Originally Posted by ZeroCools
Посмотреть сообщение
Try this dude:

if(strcmp(cmdtext,"/jetpack",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 5)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USE JETPACK);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "**Now fly away!");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "**You cant use this command!");
}
return 1;
}
Firstly, why do you copy code from another script?

Secondly, you will make things worse.

2 things that are wrong in that code, because you copied it from another script,

-It will cause many warnings, due to the indentation.

-There will be errors, because he might not use pAdmin, he could just use Rcon, or another Admin script.

And four tips,

-Don't copy code from another script

-Ask him what command processor he uses. Maybe strcmp, zcmd, dcmd or ycmd.

-Use code tags for scripts.

-Indent your code!
Reply


Messages In This Thread
Jetpack Command - by ghzspark - 21.02.2013, 18:52
Re: Jetpack Command - by ZeroCools - 21.02.2013, 19:06
Re: Jetpack Command - by Luis- - 21.02.2013, 19:08
Re: Jetpack Command - by Mark_Samp - 21.02.2013, 19:12
Re: Jetpack Command - by Goldino - 21.02.2013, 19:18
Re: Jetpack Command - by ghzspark - 21.02.2013, 19:19
Re: Jetpack Command - by Goldino - 21.02.2013, 19:21
Re: Jetpack Command - by ghzspark - 21.02.2013, 19:22
Re: Jetpack Command - by benel1 - 21.02.2013, 19:42
Re: Jetpack Command - by ghzspark - 22.02.2013, 06:55

Forum Jump:


Users browsing this thread: 2 Guest(s)