SA-MP Forums Archive
y_commands eror - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: y_commands eror (/showthread.php?tid=554296)



y_commands eror - bigboy81 - 03.01.2015

Код:
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


Re: y_commands eror - bigboy81 - 03.01.2015

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


Re: y_commands eror - ATGOggy - 03.01.2015

Use
PHP код:
#pragma unused params 



Re: y_commands eror - bigboy81 - 03.01.2015

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