19.01.2015, 02:27
C:\Users\Karolis\Desktop\LGK.lt projektas\gamemodes\LGK.pwn(27431) : warning 219: local variable "Int" shadows a variable at a preceding level
C:\Users\Karolis\Desktop\LGK.lt projektas\gamemodes\LGK.pwn(27432) : warning 213: tag mismatch
C:\Users\Karolis\Desktop\LGK.lt projektas\gamemodes\LGK.pwn(27433) : warning 213: tag mismatch
C:\Users\Karolis\Desktop\LGK.lt projektas\gamemodes\LGK.pwn(27433) : warning 213: tag mismatch
C:\Users\Karolis\Desktop\LGK.lt projektas\gamemodes\LGK.pwn(27433) : warning 205: redundant code: constant expression is zero
C:\Users\Karolis\Desktop\LGK.lt projektas\gamemodes\LGK.pwn(27439) : warning 213: tag mismatch
C:\Users\Karolis\Desktop\LGK.lt projektas\gamemodes\LGK.pwn(27446) : warning 213: tag mismatch
C:\Users\Karolis\Desktop\LGK.lt projektas\gamemodes\LGK.pwn(27431) : warning 203: symbol is never used: "Int"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Code:
new tmp,Int;
if(sscanf(params,"dd",tmp,Int)) return SendClientMessage(playerid,0xFF0000FF,"Naudojimas /addgaraz [Kaina] [Interjero numeris]");
else if( Int < 0 || Int >= sizeof(Interjerai)) return SendClientMessage(playerid,0xFF0000FF,"Tokio interjero nera");
else if(tmp < 5000) return SendClientMessage(playerid,0xFF0000FF,"Minimali garaћo kaina 5000");
new Float,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
new query[120];
//format(query,sizeof(query),"INSERT INTO Garazai (enX,enY,enX,Interjeras,Kaina) VALUES (%f,%f,%f,%d,%d)",x,y,z,Int,tmp);
format(query,sizeof(query),"INSERT INTO Garazai (enX,enY,enX,Interjeras,Kaina) VALUES (%f,%f,%f,%d,%d)",x,y,z,Int,tmp);
mysql_query(query);
new index = GetFreeGarageIndex(); //?i?r?kite ?emiau
gInfo[index][Kaina] = tmp;
gInfo[index][enX] = x;
gInfo[index][enY] = y;
gInfo[index][enZ] = z;
gInfo[index][InteriorIndeksas] = Int;
format(query,sizeof(query),"Savininkas %s",gInfo[index][Savininkas]);
gInfo[index][Label] = Create3DTextLabel(query,0x00FF00FF,gInfo[index][enX],gInfo[index][enY],gInfo[index][enZ],50,0); // sukuriame 3D label
Garazai++; //Labai svarbu. Kitaip naujausis garazas bus ignoruotas
C:\Users\Karolis\Desktop\LGK.lt projektas\gamemodes\LGK.pwn(27432) : warning 213: tag mismatch
C:\Users\Karolis\Desktop\LGK.lt projektas\gamemodes\LGK.pwn(27433) : warning 213: tag mismatch
C:\Users\Karolis\Desktop\LGK.lt projektas\gamemodes\LGK.pwn(27433) : warning 213: tag mismatch
C:\Users\Karolis\Desktop\LGK.lt projektas\gamemodes\LGK.pwn(27433) : warning 205: redundant code: constant expression is zero
C:\Users\Karolis\Desktop\LGK.lt projektas\gamemodes\LGK.pwn(27439) : warning 213: tag mismatch
C:\Users\Karolis\Desktop\LGK.lt projektas\gamemodes\LGK.pwn(27446) : warning 213: tag mismatch
C:\Users\Karolis\Desktop\LGK.lt projektas\gamemodes\LGK.pwn(27431) : warning 203: symbol is never used: "Int"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Code:
new tmp,Int;
if(sscanf(params,"dd",tmp,Int)) return SendClientMessage(playerid,0xFF0000FF,"Naudojimas /addgaraz [Kaina] [Interjero numeris]");
else if( Int < 0 || Int >= sizeof(Interjerai)) return SendClientMessage(playerid,0xFF0000FF,"Tokio interjero nera");
else if(tmp < 5000) return SendClientMessage(playerid,0xFF0000FF,"Minimali garaћo kaina 5000");
new Float,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
new query[120];
//format(query,sizeof(query),"INSERT INTO Garazai (enX,enY,enX,Interjeras,Kaina) VALUES (%f,%f,%f,%d,%d)",x,y,z,Int,tmp);
format(query,sizeof(query),"INSERT INTO Garazai (enX,enY,enX,Interjeras,Kaina) VALUES (%f,%f,%f,%d,%d)",x,y,z,Int,tmp);
mysql_query(query);
new index = GetFreeGarageIndex(); //?i?r?kite ?emiau
gInfo[index][Kaina] = tmp;
gInfo[index][enX] = x;
gInfo[index][enY] = y;
gInfo[index][enZ] = z;
gInfo[index][InteriorIndeksas] = Int;
format(query,sizeof(query),"Savininkas %s",gInfo[index][Savininkas]);
gInfo[index][Label] = Create3DTextLabel(query,0x00FF00FF,gInfo[index][enX],gInfo[index][enY],gInfo[index][enZ],50,0); // sukuriame 3D label
Garazai++; //Labai svarbu. Kitaip naujausis garazas bus ignoruotas