06.03.2016, 13:36
(
Последний раз редактировалось ParsaBlackFox; 19.03.2016 в 16:41.
)
Olб, bom dia, boa tarde e boa noite, estou com um pequeno problema
com um sistema de empresa na gm, crio a empresa mas o icone do mapa nгo aparece
o pickup aparece mas o icone nгo, observe
Criar empresa
Erro no console
OnplayerCommandtext playerid 0 cmdtext /criarprop 460000 Burger Shot
Streamer Plugin: CreateDynamicMapIcon: Expecting 10 parameter(s), but found 9
com um sistema de empresa na gm, crio a empresa mas o icone do mapa nгo aparece
o pickup aparece mas o icone nгo, observe
Код:
for(new p = 0; p < MAX_EMPRESA; p++) { format(string, sizeof(string),"/Empresas/empresa%d.ini", p); if(dini_Exists(string)){ new pickupid; new iconidempresa; if(dini_Int(string,"TDono") == 0){ pickupid = CreatePickup(1578, 1, dini_Float(string,"PosX"), dini_Float(string,"PosY"), dini_Float(string,"PosZ"), -1); dini_IntSet(string,"Id", pickupid); DestroyDynamicMapIcon(dini_Int(string, "iconidempresa")); iconidempresa = CreateDynamicMapIcon(dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ"), 44, 0, -1, -1, -1, 100.0); dini_IntSet(string, "iconidempresa", iconidempresa); format( gstring, sizeof( gstring ), "Empresa ID %d\n/infoEmpresa", p); Create3DTextLabel(gstring,0xFFFFFFAA, dini_Float(string,"PosX"), dini_Float(string,"PosY"), dini_Float(string,"PosZ")+0.75,20.0,0,1); proximaprop++; } else { pickupid = CreatePickup(1580, 1, dini_Float(string,"PosX"), dini_Float(string,"PosY"), dini_Float(string,"PosZ"), -1); dini_IntSet(string,"Id", pickupid); DestroyDynamicMapIcon(dini_Int(string, "iconidempresa")); iconidempresa = CreateDynamicMapIcon(dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ"), 43, 0, -1, -1, -1, 100.0); dini_IntSet(string, "iconidempresa", iconidempresa); format( gstring, sizeof( gstring ), "Empresa ID %d\n/infoEmpresa", p); Create3DTextLabel(gstring,0xFFFFFFAA, dini_Float(string,"PosX"), dini_Float(string,"PosY"), dini_Float(string,"PosZ")+0.75,20.0,0,1); proximaprop++; } } }
Код:
if(strcmp(cmd,"/criarprop", true) == 0) { new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); if(IsPlayerAdmin(playerid)) { new msg[128]; new plid; new preco; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, Verde,"[BMV] Use /criarprop [preзo] [nome]"); return 1; } plid = strval(tmp); msg = strrest(cmdtext, idx); if(!strlen(msg)) { SendClientMessage(playerid, Verde,"[BMV] Use /criarprop [preзo] [nome]"); return 1; } preco = plid; format(string, sizeof(string),"/Empresas/empresa%d.ini", proximaprop); if(!dini_Exists(string)) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); dini_Create(string); dini_FloatSet(string,"PosX", X); dini_FloatSet(string,"PosY", Y); dini_FloatSet(string,"PosZ", Z); dini_IntSet(string,"TInt", 1); dini_IntSet(string,"Int", 13); dini_IntSet(string,"TEmp", 0); dini_IntSet(string, "Renda",50); dini_Set(string,"Emp","Ninguem"); dini_Set(string,"Emp1","Ninguem"); dini_Set(string,"Emp2","Ninguem"); dini_FloatSet(string,"Mundo", proximaprop); dini_IntSet(string,"TDono", 0); dini_IntSet(string,"Grana", 0); dini_IntSet(string,"producao", 0); dini_IntSet(string,"entrega", 0); dini_IntSet(string,"Contas", 0); dini_IntSet(string,"Contas2", 0); dini_IntSet(string,"Contasve", 0); dini_Set(string,"Dono","Ninguem"); dini_IntSet(string,"Preco", preco); dini_Set(string,"Nome", msg); new pickupid; new iconidempresa; pickupid = CreatePickup(1578, 1, dini_Float(string,"PosX"), dini_Float(string,"PosY"), dini_Float(string,"PosZ"), -1); dini_IntSet(string,"Id", pickupid); DestroyDynamicMapIcon(dini_Int(string, "iconidempresa")); iconidempresa = CreateDynamicMapIcon(dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ"), 44, 0, -1, -1, -1, 100.0); dini_IntSet(string, "iconidempresa", iconidempresa); format( gstring, sizeof( gstring ), "Empresa ID %d\n/infoEmpresa", proximaprop); Create3DTextLabel(gstring,0xFFFFFFAA, dini_Float(string,"PosX"), dini_Float(string,"PosY"), dini_Float(string,"PosZ")+0.75,20.0,0,1); proximaprop++; return 1; } } }
OnplayerCommandtext playerid 0 cmdtext /criarprop 460000 Burger Shot
Streamer Plugin: CreateDynamicMapIcon: Expecting 10 parameter(s), but found 9