I need help with a command
#1

Hello, I'm new on the forum so I don't know the rules and all that stuff, but anyways, I need help with a command here.
This is the code:

Код:
521  YCMD:aduty(playerid, params[], help)
522  {
523 	if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, CRVENA, "LH | {FFFFFF}Niste 
        admin.");
524	new string[256];
525	if(AdminDuty[playerid] == 0)
526	{
527	    format(string,sizeof(string), ""CRVENA"LH | {F3F707}Admin {FF0000}%s {F3F707}je na duћnosti, za 
            pomoć kucajte /pitaj.", GetName(playerid));
528	    SendAdminMessage(-1, string);
529	    AdminDuty[playerid] = 1;
530	    God[playerid] = 1;
531	    SetPlayerColor(playerid, COLOR_PURPLE);
532	    SetPlayerArmour(playerid, 99.0);
533	}
534	else if(AdminDuty[playerid] == 1)
535	{
536	    SetPlayerArmour(playerid, 0);
537	    format(string, sizeof(string), ""CRVENA"LH | {F3F707}Admin {FF0000}%s {F3F707}viљe nije na duћnosti."),GetName(playerid);
538	    AdminDuty[playerid] = 0;
539	    SetPlayerColor(playerid, BIJELA);
540	}
541	return 1;
542  }
(the lines that don't have numbers in front of them, they should be on the line above them, but it couldn't fit)
Here are the errors I'm getting:

Код:
C:\Users\Nautilus\Desktop\Sve za SAMP\Last Hope ORIGINAL\gamemodes\LHope.pwn(527) : error 001: expected token: "-string end-", but found "-identifier-"

C:\Users\Nautilus\Desktop\Sve za SAMP\Last Hope ORIGINAL\gamemodes\LHope.pwn(527) : warning 215: expression has no effect

C:\Users\Nautilus\Desktop\Sve za SAMP\Last Hope ORIGINAL\gamemodes\LHope.pwn(527) : error 001: expected token: ";", but found "-string-"

C:\Users\Nautilus\Desktop\Sve za SAMP\Last Hope ORIGINAL\gamemodes\LHope.pwn(527) : warning 215: expression has no effect

C:\Users\Nautilus\Desktop\Sve za SAMP\Last Hope ORIGINAL\gamemodes\LHope.pwn(527) : error 012: invalid function call, not a valid address

C:\Users\Nautilus\Desktop\Sve za SAMP\Last Hope ORIGINAL\gamemodes\LHope.pwn(527) : fatal error 107: too many error messages on one line
I'm also new in scripting, so every help will be appreciated, thank you!
Reply


Messages In This Thread
I need help with a command - by AmarPlayer - 20.07.2017, 12:40
Re: I need help with a command - by aoky - 20.07.2017, 12:47
Re: I need help with a command - by Runn3R - 20.07.2017, 12:51
Re: I need help with a command - by ISmokezU - 20.07.2017, 12:55
Re: I need help with a command - by AmarPlayer - 20.07.2017, 16:53
Re: I need help with a command - by Daymen - 20.07.2017, 20:07

Forum Jump:


Users browsing this thread: 1 Guest(s)