ahelp Helppp
#1

i don't know how to fix this

Quote:

CMD:ahelp(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1 || IsPlayerAdmin(playerid))
SCM(playerid,VagosColor,"Admin commands");
SCM(playerid,VagosColor,"/jetpack /slap /setscore /repair /ann /ban /kick /givemoney /setadmin /setskin /goto /gethere");
else return SendClientMessage(playerid,-1,"You re not admin!");
return 1;
}

Quote:

C:\GangWars.pwn(975) : error 029: invalid expression, assumed zero
C:\GangWars.pwn(975) : warning 215: expression has no effect
C:\GangWars.pwn(975) : error 001: expected token: ";", but found "return"
C:\GangWars.pwn(976) : warning 225: unreachable code

Reply
#2

CMD:ahelp(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1 || IsPlayerAdmin(playerid)) {
SCM(playerid,VagosColor,"Admin commands");
SCM(playerid,VagosColor,"/jetpack /slap /setscore /repair /ann /ban /kick /givemoney /setadmin /setskin /goto /gethere");
}
else return SendClientMessage(playerid,-1,"You re not admin!");
return 1;
}

Try this. Basically, you forgot to put brackets,. and your indentations could use some work.
Reply
#3

thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)