Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 9604 bytes Code size: 1579796 bytes Data size: 1812260 bytes Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion Total requirements: 3418044 bytes
OnPlayerCommandText(playerid, "/comando");
|
Quando aparece isto:
Код:
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase jб quando aparecer isto: Код:
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Usage: pawncc <filename> [filename...] [options]
Options:
-A<num> alignment in bytes of the data segment and the stack
-a output assembler code
-C[+/-] compact encoding for output file (default=+)
-c<name> codepage name or number; e.g. 1252 for Windows Latin-1
-Dpath active directory path
-d<num> debugging level (default=-d1)
0 no symbolic information, no run-time checks
1 run-time checks, no symbolic information
2 full debug information and dynamic checking
3 same as -d2, but implies -O0
-e<name> set name of error file (quiet compile)
-H<hwnd> window handle to send a notification message on finish
-i<name> path for include files
-l create list file (preprocess only)
-o<name> set base name of (P-code) output file
-O<num> optimization level (default=-O1)
0 no optimization
1 JIT-compatible optimizations only
2 full optimizations
-p<name> set name of "prefix" file
-r[name] write cross reference report to console or to specified file
-S<num> stack/heap size in cells (default=4096)
-s<num> skip lines from the input file
-t<num> TAB indent size (in character positions, default=8)
-v<num> verbosity level; 0=quiet, 1=normal, 2=verbose (default=1)
-w<num> disable a specific warning by its number
-X<num> abstract machine size limit in bytes
-XD<num> abstract machine data/stack size limit in bytes
-\ use '\' for escape characters
-^ use '^' for escape characters
-;[+/-] require a semicolon to end each statement (default=-)
-([+/-] require parantheses for function invocation (default=-)
sym=val define constant "sym" with value "val"
sym= define constant "sym" with value 0
Options may start with a dash or a slash; the options "-d0" and "/d0" are
equivalent.
Options with a value may optionally separate the value from the option letter
with a colon (":") or an equal sign ("="). That is, the options "-d0", "-d=0"
and "-d:0" are all equivalent.
Quando Aparecer Isto: Код:
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 8000 bytes Code size: 313372 bytes Data size: 394448 bytes Stack/heap size: 16384 bytes; estimated max. usage=2048 cells (8192 bytes) Total requirements: 732204 bytes Para Arrumar, vocк terб que ler este tutorial ( Porque nгo usar 256 cells ). Espero ter ajudado. |
if(strcmp(cmdtext,"/comprarempresa", true) == 0)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
if(dini_Int(filene(pname),"CartaoOn") == 1){
SendClientMessage(playerid, Vermelho," | ERRO | Nгo trabalhamos com cartгo de dйbito use: /cartaooff !.");
return 1;
}
for(new p = 0; p < MAX_PROP; p++)
{
format(string, sizeof(string),"/Props/prop%d.ini", p);
if(dini_Exists(string)) {
if(IsPlayerInRangeOfPoint(playerid, 2.0, dini_Float(string,"PosX"), dini_Float(string,"PosY"), dini_Float(string,"PosZ"))) {
if(dini_Int(string,"TDono") == 0) {
if(GetPlayerGrana(playerid) >= dini_Int(string,"Preco")) {
if((GetProps(playerid) < 1 && PlayerInfo[playerid][pVip2] == 0) || (GetProps(playerid) < 2 && PlayerInfo[playerid][pVip2] == 1 && PlayerInfo[playerid][pVip3] == 0) || (GetProps(playerid) < 3 && PlayerInfo[playerid][pVip3] == 1)) {
format(gFile, sizeof(gFile), "/Props/prop%d.ini", dini_Get(pFile, "Emp"));
if(strcmp(dini_Get(gFile, "Emp"), PlayerName(playerid), true) == 0) {
SendClientMessage(playerid, Vermelho,"| ERRO | Vocк nгo pode comprar uma empresa sendo empregado de outra!");
return 1;
}
dini_IntSet(string,"TDono", 1);
dini_Set(string,"Dono", pname);
dini_IntSet(string, "Grana", 0);
GivePlayerGrana(playerid, -dini_Int(string,"Preco"));
OnPlayerCommandText(playerid,"/compraricone"); //essa aki й oq provoca aquele bagulho la
new pickupid;
DestroyPickup(dini_Int(string,"Id"));
pickupid = CreatePickup(1580, 1, dini_Float(string,"PosX"), dini_Float(string,"PosY"), dini_Float(string,"PosZ"), -1);
dini_IntSet(string,"Id", pickupid);
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
dini_IntSet(file,"Tprop", 1);
dini_IntSet(file,"idempresa", p);
format(gstring, sizeof(gstring)," | EMPRESA | O jogador %s, comprou a Empresa nъmero '%d'.", pname,p);
SendClientMessageToAll(Branco,gstring);
}
else {
SendClientMessage(playerid, Vermelho," | ERRO | Vocк atingiu o mбximo de Empresa: Normal = 1 , Vip prata = 1 Vip Ouro = 2 Vip Diamante = 3 !");
}
}
else {
SendClientMessage(playerid, Vermelho," | Erro | Vocк nгo tem dinheiro");
}
}
else {
SendClientMessage(playerid, Vermelho," | ERRO | Esta propriedade nгo estб a venda !");
}
}
else {
//SendClientMessage(playerid, Vermelho,"Vocк nгo estб em uma propriedade");
}
}
}
return 1;
}
if(strcmp(cmdtext,"/compraricone", true) == 0)
{
new pname[MAX_PLAYER_NAME];
new iconempresa;
GetPlayerName(playerid, pname, sizeof(pname));
for(new i = 0; i < MAX_ICONP; i++) {
format(string, sizeof(string),"/Iconp/Empresaid%d.ini", i);
if(dini_Exists(string)) {
if(IsPlayerInRangeOfPoint(playerid, 2.0, dini_Float(string,"PosX"), dini_Float(string,"PosY"), dini_Float(string,"PosZ"))) {
if(dini_Int(string,"TDono") == 0) {
dini_IntSet(string,"TDono", 1);
dini_Set(string,"Dono", pname);
DestroyDynamicMapIcon(dini_Int(string, "iconempresa"));
iconempresa = CreateDynamicMapIcon(dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ"), 43, 0, -1, -1, -1, 100.0);
dini_IntSet(string, "iconempresa", iconempresa);
}
}
}
}
return 1;
}