Hello Guys Please See This And Help If you can
#1

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: * :*
Reply
#2

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.
Reply
#3

You Should Show Us The Codes
Reply
#4

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
Reply
#5

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
Reply
#6

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.
Reply
#7

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
Reply
#8

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 ..
Reply
#9

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 ...
Reply
#10

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);
}
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)