Error Please Help
#1

Код:
C:\(646) : error 001: expected token: ";", but found "if"
Код:
	if(PlayerInfo[playerid][pAdmin] < PlayerInfo[id][pAdmin]) // 646
		return SendClientMessage(playerid, COLOR_RED, "That player isn't connected or logged in.");
Reply
#2

Please post the 640-650 line.
Reply
#3

Код:
	new string[128], id, Float:x, Float:y, Float:z;
	if(PlayerInfo[playerid][pAdmin] < 2)
	    return SendClientMessage(playerid, COLOR_RED, ADMIN_CMD_ERROR);
	    
	if(sscanf(params, "u", id))
		return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /slap [NAME/ID]")

	if(PlayerInfo[playerid][pAdmin] < PlayerInfo[id][pAdmin])
		return SendClientMessage(playerid, COLOR_RED, "That player isn't connected or logged in.");
		
	if(GetPVarInt(id, "Authentication") != 1)
		return SendClientMessage(playerid, COLOR_RED, "That player isn't connected or logged in.");
Reply
#4

pawn Код:
new string[128], id, Float:x, Float:y, Float:z;
    if(PlayerInfo[playerid][pAdmin] < 2)
        return SendClientMessage(playerid, COLOR_RED, ADMIN_CMD_ERROR);
       
    if(sscanf(params, "u", id))
        return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /slap [NAME/ID]");

    if(PlayerInfo[playerid][pAdmin] < PlayerInfo[id][pAdmin])
        return SendClientMessage(playerid, COLOR_RED, "That player isn't connected or logged in.");
       
    if(GetPVarInt(id, "Authentication") != 1)
        return SendClientMessage(playerid, COLOR_RED, "That player isn't connected or logged in.");
Reply
#5

Where was the problem ?
Reply
#6

You forgot a semi-colon ( ; ) here:
pawn Код:
return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /slap [NAME/ID]")
After the closing bracket, so you shouldv'e wrote it like this:
pawn Код:
return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /slap [NAME/ID]");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)