#1

hello there, i have problem with cmd i think its about params but what to do dont know any help please

Код:
   	YCMD:createbiz(playerid, params[], help)
    {
    new Float:X, Float:Y, Float:Z;
	if(PlayerInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid, COLOR_ORANGERED,"** {C0C0C0}You Cant Use This Command.");
    new firmaid,vrsta,cena,lvl,ffirma[80],string[512]; GetPlayerPos(playerid, X,Y,Z);
    if(sscanf(params, "iiii", firmaid,vrsta, lvl , cena))
	{
    	SCM(playerid, -1, "CP Help | "SPLAVA"/createbusiness [id] [species] [level] [price]");
    	SCM(playerid, -1, "Types of Companies | "SPLAVA"0: Market | 1: Market | 2: Burg");
        SCM(playerid, -1, "Types of Companies | "SPLAVA"3: Cluckin Bell | 4: Pizza | 5: Pig Pen");
        SCM(playerid, -1, "Types of Companies | "SPLAVA"6: Bar | 7: Gym | 8: Sex Shop | 9: Binco");
        SCM(playerid, -1, "Types of Companies | "SPLAVA"10: Gun Shop | 11: Disco | 12: Restoran");
        SCM(playerid, -1, "Types of Companies | "SPLAVA"13: Zip | 14: Victim | 15: Suburban");
        SCM(playerid, -1, "Types of Companies | "SPLAVA"16: Night Club | 17: Elite Restoran | 18: Gun Shop 2");
        SCM(playerid, -1, "Types of Companies | "SPLAVA"19: Barber | 20: Casino | 21: S biznis");
    	return 1;
	}

Errors i get


error 025: function heading differs from prototype
error 017: undefined symbol "@yC_createbiz"
error 017: undefined symbol "@yC_createbiz"
error 017: undefined symbol "i"
fatal error 107: too many error messages on one line
Reply


Messages In This Thread
Y - by Lumixa - 31.05.2015, 11:56
Re: Y - by fuckingcruse - 31.05.2015, 12:01
Re: Y - by Lumixa - 31.05.2015, 12:11
Re: Y - by fuckingcruse - 31.05.2015, 12:16

Forum Jump:


Users browsing this thread: 1 Guest(s)