20.07.2017, 12:40
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:
(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:
I'm also new in scripting, so every help will be appreciated, thank you!
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 }
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