if(strcmp(cmd, "/makehelper", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /makehelper [playerid/PartOfName] [1-yes 0-no]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
new stext[64];
new htext[64];
if(level > 1 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "Don't go above 1 or below 0."); return 1; }
if(strcmp(sendername, "DH01" "Klaps", true) == 0)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pHelper] = level;
if(level == 0) { htext == "Ai fost retrogradat ca Helper de"; } // line 29675
else if(level == 1) { htext == "Ai fost promovat ca Helper de"; } // line 29676
format(string, sizeof(string), "%s %s.", htext, sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
if(level == 0) { stext == "Ai retrogradat %s ca Helper."; } // line 29679
else if(level == 1) { stext == "Ai promovat %s ca Helper."; } // line 29680
format(string, sizeof(string), "%s %s.", stext, giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Nu esti autorizat");
}
}
return 1;
}
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\OGRP\gamemodes\opengate.pwn(29675) : error 033: array must be indexed (variable "htext") C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\OGRP\gamemodes\opengate.pwn(29676) : error 033: array must be indexed (variable "htext") C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\OGRP\gamemodes\opengate.pwn(29679) : error 033: array must be indexed (variable "stext") C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\OGRP\gamemodes\opengate.pwn(29680) : error 033: array must be indexed (variable "stext") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
if(strcmp(cmd, "/makehelper", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /makehelper [playerid/PartOfName] [1-yes 0-no]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
new stext[64];
new htext[64];
if(level > 1 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "Don't go above 1 or below 0."); return 1; }
if(strcmp(sendername, "DH01" "Klaps", true) == 0)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pHelper] = level;
if(level == 0) { htext = "Ai fost retrogradat ca Helper de"; } // line 29675
else if(level == 1) { htext = "Ai fost promovat ca Helper de"; } // line 29676
format(string, sizeof(string), "%s %s.", htext, sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
if(level == 0) { stext = "Ai retrogradat %s ca Helper."; } // line 29679
else if(level == 1) { stext = "Ai promovat %s ca Helper."; } // line 29680
format(string, sizeof(string), "%s %s.", stext, giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Nu esti autorizat");
}
}
return 1;
}