C:\Documents and Settings\rene\Desktop\Desktop\Brasil Virtual Living - 1.0B\gamemodes\BLS.pwn(38815) : warning 215: expression has no effect
C:\Documents and Settings\rene\Desktop\Desktop\Brasil Virtual Living - 1.0B\gamemodes\BLS.pwn(38815) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
if(strcmp(cmd, "/darnivel", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "/darnivel [ id ] [nivel]");
return 1;
}
new playa;
new nivel;
new para1;
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
nivel = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
if(admtrabalhando[playerid] < 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
return 1;
}
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
ConsumingMoney[playa] = 1;
PlayerInfo[playerid][pLevel],(nivel);
new year, month,day;
getdate(year, month, day);
new hour, minute;
gettime(hour,minute);
format(string, sizeof(string), "%s deu Nivel %d para %s ( %d/%d/%d - %d:%d )", pNome(playerid),nivel,pNome(playa),year, month, day,hour, minute);
ABroadCast(COLOR_YELLOW, string,1);
}
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTGREEN, "Voce nгo esta autorizado a usar este comando!");
}
}
return 1;
}
if(strcmp(cmd, "/darnivel", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "/darnivel [ id ] [nivel]");
new playa, nivel, para1;
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
nivel = strval(tmp);
if (PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_LIGHTGREEN, "Voce nгo esta autorizado a usar este comando!");
if(admtrabalhando[playerid] < 1) return SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
if(!IsPlayerConnected(playa) || playa == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_LIGHTGREEN, "Jogador Offline.");
ConsumingMoney[playa] = 1;
PlayerInfo[playa][pLevel] = nivel;
new year, month,day;
getdate(year, month, day);
new hour, minute;
gettime(hour,minute);
format(string, sizeof(string), "%s deu Nivel %d para %s ( %04d/%02d/%02d - %02d:%02d )", pNome(playerid),nivel,pNome(playa),year, month, day,hour, minute);
ABroadCast(COLOR_YELLOW, string,1);
return 1;
}
-------------------------- SA-MP Server: 0.3c Exception At Address: 0x7C90100B Registers: EAX: 0x00000020 EBX: 0x00000030 ECX: 0x7FFDF000 EDX: 0x00000020 ESI: 0x00000000 EDI: 0x034B5674 EBP: 0x0013FD88 ESP: 0x0013FD50 EFLAGS: 0x00010202 Stack: +0000: 0x004A259E 0x00000020 0x004A2BEE 0x00000000 +0010: 0x034B5674 0x00000000 0x00000030 0x00484054 +0020: 0x0013FD60 0x0013F974 0x0013FEDC 0x004A6BC4 +0030: 0x004C11D8 0xFFFFFFFF 0x00000000 0x0040551E +0040: 0x00000030 0x00000000 0x034B5668 0x0013FDB8 +0050: 0x019C33C4 0x004059AF 0x00000001 0x010CD308 +0060: 0x010CD308 0x00000005 0x01C4442C 0x00401096 +0070: 0x010CD308 0x034B5674 0x01C73C58 0x00402BB3 +0080: 0x010CD308 0x00000027 0x0013FDF0 0x034B5668 +0090: 0x010CDC18 0x00000000 0x00000000 0x010CD308 +00A0: 0x00000000 0x01841A10 0x01841A10 0x01842268 +00B0: 0x01824DAC 0x01841E24 0x01824DAC 0x019C33C4 +00C0: 0x01C73C58 0x00000000 0x019C0020 0x002B0894 +00D0: 0x00490BAA 0x010CD308 0x0013FE50 0x00000154 +00E0: 0x00AB76C8 0x7C802446 0x3BC01555 0x00AB5C40 +00F0: 0x010CDC18 0x00000154 0x00AB5C40 0x010CDD60 +0100: 0x000001F4 0x0049B994 0x00000005 0x7C802530 +0110: 0x7C80A0A7 0x00000000 0x3BC01555 0x0049820C +0120: 0x00000000 0x00000893 0x0013FFC0 0x7FFDA000 +0130: 0x00012BA3 0x00010101 0x00000064 0x00001E61 -------------------------- SA-MP Server: 0.3c Exception At Address: 0x7C90100B Registers: EAX: 0x00000020 EBX: 0x00000030 ECX: 0x7FFDF000 EDX: 0x00000020 ESI: 0x00000000 EDI: 0x034B5674 EBP: 0x0013FD88 ESP: 0x0013FD50 EFLAGS: 0x00010202 Stack: +0000: 0x004A259E 0x00000020 0x004A2BEE 0x00000000 +0010: 0x034B5674 0x00000000 0x00000030 0x00484054 +0020: 0x0013FD60 0x0013F974 0x0013FEDC 0x004A6BC4 +0030: 0x004C11D8 0xFFFFFFFF 0x00000000 0x0040551E +0040: 0x00000030 0x00000000 0x034B5668 0x0013FDB8 +0050: 0x019C33C4 0x004059AF 0x00000001 0x010CD308 +0060: 0x010CD308 0x00000005 0x01C4442C 0x00401096 +0070: 0x010CD308 0x034B5674 0x01C73C58 0x00402BB3 +0080: 0x010CD308 0x00000027 0x0013FDF0 0x034B5668 +0090: 0x010CDC18 0x00000000 0x00000000 0x010CD308 +00A0: 0x00000000 0x01841A10 0x01841A10 0x01842268 +00B0: 0x01824DAC 0x01841E24 0x01824DAC 0x019C33C4 +00C0: 0x01C73C58 0x00000000 0x019C0020 0x002B0894 +00D0: 0x00490BAA 0x010CD308 0x0013FE50 0x00000154 +00E0: 0x00AB76C8 0x7C802446 0x3BC03175 0x00AB5C40 +00F0: 0x010CDC18 0x00000154 0x00AB5C40 0x010CDD60 +0100: 0x000001F4 0x0049B994 0x00000005 0x7C802530 +0110: 0x7C80A0A7 0x00000000 0x3BC03175 0x0049820C +0120: 0x00000000 0x00000893 0x0013FFC0 0x7FFD6000 +0130: 0x00012BA3 0x00010101 0x00000064 0x00001E61 -------------------------- SA-MP Server: 0.3c Exception At Address: 0x7C90100B Registers: EAX: 0x00000020 EBX: 0x00000030 ECX: 0x7FFDD000 EDX: 0x00000020 ESI: 0x00000000 EDI: 0x034B5674 EBP: 0x0013FD88 ESP: 0x0013FD50 EFLAGS: 0x00010202 Stack: +0000: 0x004A259E 0x00000020 0x004A2BEE 0x00000000 +0010: 0x034B5674 0x00000000 0x00000030 0x00484054 +0020: 0x0013FD60 0x0013F974 0x0013FEDC 0x004A6BC4 +0030: 0x004C11D8 0xFFFFFFFF 0x00000000 0x0040551E +0040: 0x00000030 0x00000000 0x034B5668 0x0013FDB8 +0050: 0x019C33C4 0x004059AF 0x00000001 0x010CD308 +0060: 0x010CD308 0x00000005 0x01C4442C 0x00401096 +0070: 0x010CD308 0x034B5674 0x01C73C58 0x00402BB3 +0080: 0x010CD308 0x00000027 0x0013FDF0 0x034B5668 +0090: 0x010CDC18 0x00000000 0x00000000 0x010CD308 +00A0: 0x00000000 0x01841A10 0x01841A10 0x01842268 +00B0: 0x01824DAC 0x01841E24 0x01824DAC 0x019C33C4 +00C0: 0x01C73C58 0x00000000 0x019C0020 0x002B0894 +00D0: 0x00490BAA 0x010CD308 0x0013FE50 0x00000154 +00E0: 0x00AB76C8 0x7C802446 0x3BBEA7C0 0x00AB5C40 +00F0: 0x010CDC18 0x00000154 0x00AB5C40 0x010CDD60 +0100: 0x00000000 0x0049B994 0x00000005 0x7C802530 +0110: 0x7C80A0A7 0x00000000 0x3BBEA7C0 0x0049820C +0120: 0x00000000 0x00000893 0x0013FFC0 0x7FFDE000 +0130: 0x00012BA3 0x00010101 0x00000064 0x00001E61 -------------------------- SA-MP Server: 0.3c Exception At Address: 0x7C90100B Registers: EAX: 0x00000020 EBX: 0x00000030 ECX: 0x7FFDF000 EDX: 0x00000020 ESI: 0x00000000 EDI: 0x034B54CC EBP: 0x0013FD88 ESP: 0x0013FD50 EFLAGS: 0x00010202 Stack: +0000: 0x004A259E 0x00000020 0x004A2BEE 0x00000000 +0010: 0x034B54CC 0x00000000 0x00000030 0x00484054 +0020: 0x0013FD60 0x0013F974 0x0013FEDC 0x004A6BC4 +0030: 0x004C11D8 0xFFFFFFFF 0x00000000 0x0040551E +0040: 0x00000030 0x00000000 0x034B54C0 0x0013FDB8 +0050: 0x019C33C4 0x004059AF 0x00000001 0x010CD308 +0060: 0x010CD308 0x00000005 0x01C44468 0x00401096 +0070: 0x010CD308 0x034B54CC 0x01C73C94 0x00402BB3 +0080: 0x010CD308 0x00000027 0x0013FDF0 0x034B54C0 +0090: 0x010CDC18 0x00000000 0x00000000 0x010CD308 +00A0: 0x00000000 0x0184182C 0x0184182C 0x01842084 +00B0: 0x01824BC8 0x01841C40 0x01824BC8 0x019C33C4 +00C0: 0x01C73C94 0x00000000 0x019C0020 0x002B08D0 +00D0: 0x00490BAA 0x010CD308 0x0013FE50 0x00000154 +00E0: 0x00AB76C8 0x7C802446 0x3C759250 0x00AB5C40 +00F0: 0x010CDC18 0x00000154 0x00AB5C40 0x010CDD60 +0100: 0x000001F4 0x0049B994 0x0000000E 0x7C802530 +0110: 0x7C80A0A7 0x00000000 0x3C759250 0x0049820C +0120: 0x00000000 0x00000893 0x0013FFC0 0x7FFD5000 +0130: 0x00002BA3 0x00010101 0x00000064 0x00001E61 -------------------------- SA-MP Server: 0.3c Exception At Address: 0x7C90100B Registers: EAX: 0x00000020 EBX: 0x00000030 ECX: 0x7FFDF000 EDX: 0x00000020 ESI: 0x00000000 EDI: 0x034B57A8 EBP: 0x0013FD88 ESP: 0x0013FD50 EFLAGS: 0x00010202 Stack: +0000: 0x004A259E 0x00000020 0x004A2BEE 0x00000000 +0010: 0x034B57A8 0x00000000 0x00000030 0x00484054 +0020: 0x0013FD60 0x0013F974 0x0013FEDC 0x004A6BC4 +0030: 0x004C11D8 0xFFFFFFFF 0x00000000 0x0040551E +0040: 0x00000030 0x00000000 0x034B579C 0x0013FDB8 +0050: 0x019C33C4 0x004059AF 0x00000001 0x010CD308 +0060: 0x010CD308 0x00000005 0x01C44608 0x00401096 +0070: 0x010CD308 0x034B57A8 0x01C73E34 0x00402BB3 +0080: 0x010CD308 0x00000027 0x0013FDF0 0x034B579C +0090: 0x010CDC18 0x00000000 0x00000000 0x010CD308 +00A0: 0x00000000 0x01841968 0x01841968 0x018421C0 +00B0: 0x01824D04 0x01841D7C 0x01824D04 0x019C33C4 +00C0: 0x01C73E34 0x00000000 0x019C0020 0x002B0A70 +00D0: 0x00490BAA 0x010CD308 0x0013FE50 0x00000154 +00E0: 0x00AB76C8 0x7C802446 0x3BBC6039 0x00AB5C40 +00F0: 0x010CDC18 0x00000154 0x00AB5C40 0x010CDD60 +0100: 0x000001F4 0x0049B994 0x00000005 0x7C802530 +0110: 0x7C80A0A7 0x00000000 0x3BBC6039 0x0049820C +0120: 0x00000000 0x00000893 0x0013FFC0 0x7FFD7000 +0130: 0x00002BA3 0x00010101 0x00000064 0x00001E61 -------------------------- SA-MP Server: 0.3c Exception At Address: 0x7C90100B Registers: EAX: 0x00000020 EBX: 0x00000030 ECX: 0x7FFDF000 EDX: 0x00000020 ESI: 0x00000000 EDI: 0x034057A8 EBP: 0x0012FD88 ESP: 0x0012FD50 EFLAGS: 0x00010202 Stack: |
#include <a_samp>
#include <utils>
#include <morphinc>
#include <cpstream>
#include <Y_Objects>
#include <Dini>
#include <Virtual_objects>
public LoadAdmin()
{
new arrCoords[3][64];
new strFromFile2[256];
new File: file = fopen("VirtualArquivos/admins.cfg", io_read);
if (file)
{
new idx = 1;
while(idx < sizeof(AdminInfo))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, ',');
AdminInfo[idx][AdminLV] = strval(arrCoords[0]);
strmid(AdminInfo[idx][AdminNick], arrCoords[1], 0, strlen(arrCoords[1]), 255);
AdminInfo[idx][AdminVaga] = strval(arrCoords[2]);
AdminInfo[idx][aID] = idx;
//printf("[ADM]%s Level: %d Vaga: %d ID [%d]",AdminInfo[idx][AdminNick],AdminInfo[idx][AdminLV],AdminInfo[idx][AdminVaga],AdminInfo[idx][aID]);
idx++;
}
}
fclose(file);
return 1;
}
public LoadVip()
{
new arrCoords[3][64];
new strFromFile2[256];
new File: file = fopen("VirtualArquivos/Vips.cfg", io_read);
if (file)
{
new idx = 0;
while(idx < sizeof(VipInfo))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, ',');
VipInfo[idx][VipLV] = strval(arrCoords[0]);
strmid(VipInfo[idx][VipNick], arrCoords[1], 0, strlen(arrCoords[1]), 255);
VipInfo[idx][VipVaga] = strval(arrCoords[2]);
VipInfo[idx][vID] = idx;
//printf("[VIP]%s Level: %d Vaga: %d ID [%d]",VipInfo[idx][VipNick],VipInfo[idx][VipLV],VipInfo[idx][VipVaga],VipInfo[idx][vID]);
idx++;
}
}
fclose(file);
return 1;
}
public SaveVip()
{
new idx;
new File: file2;
while (idx < sizeof(VipInfo))
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%d,%s,%d\n",VipInfo[idx][VipLV],VipInfo[idx][VipNick],VipInfo[idx][VipVaga]);
if(idx == 0)
{
file2 = fopen("VirtualArquivos/Vips.cfg", io_write);
}
else
{
file2 = fopen("VirtualArquivos/Vips.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
return 1;
}
public SaveAdmin()
{
new idx;
new File: file2;
while (idx < sizeof(AdminInfo))
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%d,%s,%d\n",AdminInfo[idx][AdminLV],AdminInfo[idx][AdminNick],AdminInfo[idx][AdminVaga]);
if(idx == 0)
{
file2 = fopen("VirtualArquivos/Admins.cfg", io_write);
}
else
{
file2 = fopen("VirtualArquivos/Admins.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
return 1;
}