y_commands eror
#1

Код:
warning 218: old style prototypes used with optional semicolumns
warning 203: symbol is never used: "params"
Command:

Код:
YCMD:buyticket(playerid, params[], help)
{
    #pragma unused help
    if(IsPlayerInRangeOfPoint(playerid, 1, 1223.8335,-1249.4965,1287.8243))
    {
        if(PlayerInfo[playerid][pTicket] == 1)return SendClientMessage(playerid, 0xFF0000AA, "You have already ticket");
        if(GetPlayerMoney(playerid) < 50000) return SendClientMessage(playerid, 0xFF0000AA, "You don't have cash for this!");
        {
        	SendClientMessage(playerid, COLOR_WHITE,"You are buy ticket :)");
        	new sendername[MAX_PLAYER_NAME],giveplayerid,giveplayer[MAX_PLAYER_NAME],string[128];
        	GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), "* %s buy now ticket.",  giveplayer, giveplayerid, sendername);
			ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
			PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
        	SafeGivePlayerMoney(playerid, - 50000);
        	PlayerInfo[playerid][pKnjizica] = 1;
		}
	}
	return 1;
}
also i try #pragma unused params but didn't work
Reply
#2

Quote:
Originally Posted by ******
Посмотреть сообщение
The only reason I have seen this message before is from manually invoking the compiler with the wrong flags.
hmm,and how to fix this..
i look your post about this warning but i don't have #pragma semicolon 0 in my gamemode
Reply
#3

Use
PHP код:
#pragma unused params 
Reply
#4

Quote:
Originally Posted by ATGOggy
Посмотреть сообщение
Use
PHP код:
#pragma unused params 
Not work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)