Jump to content
  • 0

Problema comanda createbiz


SpriteTV

Question

C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(24541 -- 24542) : error 017: undefined symbol "bStatic"
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(24551) : error 017: undefined symbol "bGas"
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(24551) : warning 215: expression has no effect
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(24558) : error 017: undefined symbol "bLevel"
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(24558) : warning 215: expression has no effect
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(24562) : error 017: undefined symbol "bStatic"
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(24562) : error 017: undefined symbol "bStatic"
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(24562) : warning 202: number of arguments does not match definition
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(24562) : error 001: expected token: "]", but found ";"
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(24562) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


7 Errors.
[Finished in 11.0s]

Am luat si eu comanda lui edison pentru a crea un biz si se pare ca am niste problem erori.

comanda cu tot cu functile care le-am gasit.

 

function BizWithType(type) {
	for(new i = 1; i < sizeof(BizzInfo); i++) {
		if(BizzInfo[i][bType] == type) return i;
	}	
	return 0;
}

CMD:createbiz(playerid, params[]) {
	if(PlayerInfo[playerid][pAdmin] < 6) return 1;
	new type, value, level, idd = bussines+1, Float: Pos[3], query[512];
	if(sscanf(params, "iii", type, value, level)) { 
		SCM(playerid, COLOR_GREY, "Syntax: {FFFFFF}/createbiz <type> <value> <level>");
		SCM(playerid, -1, "Types: Banca (1), Gun Shop (2), Club (3), Restaurant (4), Sex shop (5), 24/7 (6), Binco (7), Burger (8), Casino (9)");
		SCM(playerid, -1, "CNN (10), Gas Station (17), PNS (19), Pizza (21)");
		return 1;
	}	
	if(type > 10 && type < 17 || type == 20 || type > 21 || type < 1) return SCM(playerid, COLOR_GREY, "Invalid type!");
	GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
	
	new biz = BizWithType(type);
	// daca e benzinarie
	format(query, sizeof(query), "INSERT INTO `bizz` (`EntranceX`, `EntranceY`, `EntranceZ`, `ExitX`, `ExitY`, `ExitZ`, `LevelNeeded`, `BuyPrice`, `Type`, `Interior`, `Static`) VALUES ('%f', '%f', '%f', '%f', '%f', '%f', '%d', '%d', '%d', '%d', '%d')", 
	Pos[0], Pos[1], Pos[2], BizzInfo[biz][bExitX], BizzInfo[biz][bExitY], BizzInfo[biz][bExitZ], level, value, type, BizzInfo[biz][bInterior], BizzInfo[biz][bStatic]);
	mysql_tquery(SQL, query, "", "");
	format(query, sizeof(query), "UPDATE `bizz` SET `Virtual`='%d' WHERE `ID`='%d'", idd, idd);
	mysql_tquery(SQL, query, "", "");
	
	new i = idd;
	if(type == 17) {
		format(query, sizeof(query), "UPDATE `bizz` SET `Gas`='%d' WHERE `ID`='%d'", 1, idd);
		mysql_tquery(SQL, query, "", "");
		BizzInfo[i][bGas] = 1;
	}
	BizzInfo[idd][bExitX] = BizzInfo[biz][bExitX]; BizzInfo[idd][bExitY] = BizzInfo[biz][bExitY]; BizzInfo[idd][bExitZ] = BizzInfo[biz][bExitZ];
	BizzInfo[idd][bEntranceX] = Pos[0];
	BizzInfo[idd][bEntranceY] = Pos[1];
	BizzInfo[idd][bEntranceZ] = Pos[2];
	BizzInfo[idd][bBuyPrice] = value;
	BizzInfo[idd][bLevel] = level;	
	BizzInfo[idd][bVirtual] = idd;	
	BizzInfo[idd][bType] = type;	
	BizzInfo[idd][bInterior] = BizzInfo[biz][bInterior];
	BizzInfo[idd][bStatic] = BizzInfo[biz][bStatic];
	
	BizzInfo[i][bPickup] = CreateDynamicPickup(1239, 23, BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]);
	switch(BizzInfo[i][bType]) {
		case 1: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],52,0,-1,0,-1,500.0); // banca
		case 2: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],6,0,-1,0,-1,500.0); // gun shop
		case 3: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],49,0,-1,0,-1,500.0); // club
		case 4: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],50,0,-1,0,-1,500.0); // restaurant	
		case 5: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],38,0,-1,0,-1,500.0); // sexshop	
		case 6: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],17,0,-1,0,-1,500.0); // 24/7	
		case 7: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],45,0,-1,0,-1,500.0); // binco
		case 8: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],10,0,-1,0,-1,500.0); // burger	
		case 9: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],25,0,-1,0,-1,500.0); // casino	
		case 10: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],16,0,-1,0,-1,500.0); // cnn	
		//case 11: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],16,0,-1,0,-1,500.0); // moto				
		case 12: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],55,0,-1,0,-1,500.0); // car				
		case 13: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],23,0,-1,0,-1,500.0); // cs				
		//case 14: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],23,0,-1,0,-1,500.0); // furniture			
		case 15: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],63,0,-1,0,-1,500.0); // car color			
		case 16: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],23,0,-1,0,-1,500.0); // paint		
		case 17: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],51,0,-1,0,-1,500.0); // gas station		
		case 18: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],53,0,-1,0,-1,500.0); // race	
		case 19: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],63,0,-1,0,-1,500.0); // pns		
		case 20: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],9,0,-1,0,-1,500.0); // pescarie	
		case 21: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],29,0,-1,0,-1,500.0); // pizza
		case 27: CreateDynamicMapIcon(BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ],29,0,-1,0,-1,500.0); // tuning
	}
	UpdateLabel(2,idd);
	bussines++;
	return 1;
}

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
Acum 33 minute, VLM a spus:

Daca ai luat comanda, nu ai cautat si tu cu 'ctrl+f' sa definesti ce e acolo?

Cauta cu 'ctrl + f' de unde ai luat comanda si defineste si la tine in gamemode dupa revino cu erorile care le mai ai.


bStatic
bGas
bLevel

 

pai comanda am luat`o dupa forum de aici postat de un baiat la fs

Link to comment
Share on other sites

  • 0

vezi daca acele denumiri s-ar putea inlocui cu ceva din enum-ul de la biz-uri, daca nu inseamna ca nu ai nevoie de ele.

Edited by SherKan
Citat
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.