Hello Guys Please See This And Help If you can -
CroxL - 12.01.2014
Hello Guys , i have question i made helper system and in game i can usually use makehelper id .... and player will be helper but i wanted like whe nyou type : /admins you will see online administrators , /helpers to see online helpers i tried to make helper system i copyd it like admins but i gont only one error if you can help me .
And The Code Is In Image And Error Is This
Код:
C:\Documents and Settings\Holly-\Desktop\NighGame\gamemodes\NightGame.pwn(53413) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
If Can Help Me Thanks: * :*
Re: Hello Guys Please See This And Help If you can -
Jimmy0wns - 12.01.2014
We can't do much if you don't show us your code and i can see already that
you didnt make the helper system yourself comparing to the amount of lines the script has.
Re: Hello Guys Please See This And Help If you can -
amirab - 12.01.2014
You Should Show Us The Codes
Re: Hello Guys Please See This And Help If you can -
xZdadyZx - 12.01.2014
fuc* it when we cannot see bugged line. SS whole pawno with oine numbers so we can see what line makes problem. Please upload script or new picture that will include lines
Re: Hello Guys Please See This And Help If you can -
CroxL - 12.01.2014
Guys Ill record video and plz than see i really need your help i trust you guys and know that you will help me wait me 10 minute
Re: Hello Guys Please See This And Help If you can -
Jimmy0wns - 12.01.2014
As we said, we need the picture where it also says the lines on the left, either translate our replies or go ahead and make your stupid nonsense video.
Re: Hello Guys Please See This And Help If you can -
CutX - 12.01.2014
Quote:
Originally Posted by Jimmy0wns
As we said, we need the picture where it also says the lines on the left, either translate our replies or go ahead and make your stupid nonsense video.
|
a picture? wtf?
@Topic:
error 029: invalid expression, assumed zero
means that you messed up with the expressions somewhere.
and you actually did.
Youre missing a ")" bracket at
else if(strcmp(cmd, "/helpers", true) == 0
it should look like:
else if(strcmp(cmd, "/helpers", true) == 0
)
btw.
copy&paste the code next time instead of an SS :P
Re: Hello Guys Please See This And Help If you can -
CroxL - 12.01.2014
Quote:
else if (strcmp(cmd, "/helpers", true) == 0)
{
if(IsPlayerAdmin(playerid)|| PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pDonateRank] >= 1)
{
SendClientMessage(playerid, COLOR_YELLOW, "Helpers Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pHelper] >= 1)
{
new drank[20];
if(PlayerInfo[i][pAdmin] == 1) { drank = "Low Helper"; }
else if(PlayerInfo[i][pAdmin] == 2) { drank = "Medium Helper"; }
else if(PlayerInfo[i][pAdmin] == 3) { drank = "High Helper"; }
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "%s | ID:%d | %s level",sendername,i,drank);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
}
}
return 1;
}
|
Guys I Made everything fine when i type /helpers it seems but it doesnt see you rank name like :low helper and ..
Re: Hello Guys Please See This And Help If you can -
CroxL - 12.01.2014
CutX Thanks :* +1 If you tell me how to do that like show ranks : like rank 1 helper low helper rank 2 medium rank 3 hight and ...
Re: Hello Guys Please See This And Help If you can -
CutX - 12.01.2014
replace this:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pHelper] >= 1)
{
new drank[20];
if(PlayerInfo[i][pAdmin] == 1) { drank = "Low Helper"; }
else if(PlayerInfo[i][pAdmin] == 2) { drank = "Medium Helper"; }
else if(PlayerInfo[i][pAdmin] == 3) { drank = "High Helper"; }
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "%s | ID:%d | %s level",sendername,i,drank);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
}
with this:
pawn Код:
new drank[14];
for(new i = 0; i <= GetMaxPlayers(); i++)
{
if(!PlayerInfo[i][pHelper]) continue;
switch(PlayerInfo[i][pAdmin])
{
case 1: drank = "Low Helper";
case 2: drank = "Medium Helper";
case 3: drank = "High Helper";
}
GetPlayerName(i, sendername, sizeof(sendername));
format(string, sizeof string, "%s | ID:%d | %s level",sendername,i,drank);
SendClientMessage(playerid, COLOR_WHITE, string);
}