21.04.2017, 17:02
Olб estou com um erro no meu sistemas de casas, base do WE RPG
Topo do gamemode:
No OnGameModeInit jб coloquei as coordenadas.
Fim Do Gamemode:
Erros apresentados:
Linha 933 :
Topo do gamemode:
Код:
new gStr[128], gFile[128], hFile[128], pFile[128] ;
Fim Do Gamemode:
Код:
stock CriarCasa(casaid, Float:Pickupx, Float:Pickupy, Float:Pickupz, Float:interiorX, Float:interiorY, Float:interiorZ, Interior, cVenda, cPreco, virtualworld, mapicon) { format(hFile, sizeof(hFile), "Casas/casa%d.ini", casaid); if(!fexist(hFile)) { DOF2_CreateFile(hFile); CasaInfo[casaid][Numero] = casaid; format(CasaInfo[casaid][Proprietario], 12, "Ninguem"); DOF2_SetString(hFile, "Proprietario", "Ninguem"); format(CasaInfo[casaid][Morador], 12, "Ninguem"); DOF2_SetString(hFile, "Morador", "Ninguem"); format(CasaInfo[casaid][Morador2], 12, "Ninguem"); DOF2_SetString(hFile, "Morador2", "Ninguem"); format(CasaInfo[casaid][Morador3], 12, "Ninguem"); DOF2_SetString(hFile, "Morador3", "Ninguem"); format(CasaInfo[casaid][Login], 12, "00/00/0000"); DOF2_SetString(hFile, "Login", "00/00/0000"); format(CasaInfo[casaid][Mensagem], 12, "Nada"); DOF2_SetString(hFile, "Horario", "00:00:00"); format(CasaInfo[casaid][Horario], 12, "00:00:00"); DOF2_SetString(hFile, "Mensagem", "Nada"); CasaInfo[casaid][PickupX] = Pickupx; CasaInfo[casaid][PickupY] = Pickupy; CasaInfo[casaid][PickupZ] = Pickupz; CasaInfo[casaid][InteriorX] = interiorX; CasaInfo[casaid][InteriorY] = interiorY; CasaInfo[casaid][InteriorZ] = interiorZ; CasaInfo[casaid][InteriorID] = Interior; CasaInfo[casaid][Venda] = cVenda; CasaInfo[casaid][Preco] = cPreco; CasaInfo[casaid][VirtualWorld] = virtualworld; CasaInfo[casaid][Status] = 0; CasaInfo[casaid][MapIcon] = mapicon; DOF2_SetInt(hFile, "Numero", casaid); DOF2_SetFloat(hFile, "InteriorX", interiorX); DOF2_SetFloat(hFile, "InteriorY", interiorY); DOF2_SetFloat(hFile, "InteriorZ", interiorZ); DOF2_SetInt(hFile, "Interior", Interior); DOF2_SetInt(hFile, "Venda", cVenda); DOF2_SetInt(hFile, "Valor", cPreco); DOF2_SetInt(hFile, "VirtualWorld", virtualworld); DOF2_SetInt(hFile, "Dono", 0); DOF2_SetInt(hFile, "Status", 0); DOF2_SetInt(hFile, "MapIcon", mapicon); DOF2_SetFloat(hFile, "X", Pickupx); DOF2_SetFloat(hFile, "Y", Pickupy); DOF2_SetFloat(hFile, "Z", Pickupz); DOF2_SetInt(hFile, "vLiberado", 0); DOF2_SetInt(hFile, "vM1", 0); DOF2_SetInt(hFile, "vM2", 0); DOF2_SetInt(hFile, "vM3", 0); DOF2_SetInt(hFile, "useCar", 0); printf("================[CASA %d CRIADA]================", casaid); printf("_ Casa %d criada com sucesso!", casaid); printf("================[CASA %d CRIADA]================", casaid); } else { format(CasaInfo[casaid][Proprietario], 24, DOF2_GetString(hFile, "Proprietario")); format(CasaInfo[casaid][Morador], 24, DOF2_GetString(hFile, "Morador")); format(CasaInfo[casaid][Morador2], 24, DOF2_GetString(hFile, "Morador2")); format(CasaInfo[casaid][Morador3], 24, DOF2_GetString(hFile, "Morador3")); format(CasaInfo[casaid][Mensagem], 64, DOF2_GetString(hFile, "Mensagem")); format(CasaInfo[casaid][Horario], 12, DOF2_GetString(hFile, "Horario")); format(CasaInfo[casaid][Login], 12, DOF2_GetString(hFile, "Login")); CasaInfo[casaid][Numero] = DOF2_GetInt(hFile, "Numero"); CasaInfo[casaid][Venda] = DOF2_GetInt(hFile, "Venda"); CasaInfo[casaid][Preco] = DOF2_GetInt(hFile, "Valor"); CasaInfo[casaid][Status] = DOF2_GetInt(hFile, "Status"); CasaInfo[casaid][InteriorID] = DOF2_GetInt(hFile, "Interior"); CasaInfo[casaid][InteriorX] = DOF2_GetFloat(hFile, "InteriorX"); CasaInfo[casaid][InteriorY] = DOF2_GetFloat(hFile, "InteriorY"); CasaInfo[casaid][InteriorZ] = DOF2_GetFloat(hFile, "InteriorZ"); CasaInfo[casaid][VirtualWorld] = DOF2_GetInt(hFile, "VirtualWorld"); CasaInfo[casaid][MapIcon] = DOF2_GetInt(hFile, "MapIcon"); CasaInfo[casaid][vLiberado] = DOF2_GetInt(hFile, "vLiberado"); CasaInfo[casaid][vM1] = DOF2_GetInt(hFile, "vM1"); CasaInfo[casaid][vM2] = DOF2_GetInt(hFile, "vM2"); CasaInfo[casaid][vM3] = DOF2_GetInt(hFile, "vM3"); DOF2_SetFloat(hFile, "X", Pickupx); DOF2_SetFloat(hFile, "Y", Pickupy); DOF2_SetFloat(hFile, "Z", Pickupz); } CasaInfo[casaid][PickupX] = Pickupx; CasaInfo[casaid][PickupY] = Pickupy; CasaInfo[casaid][PickupZ] = Pickupz; if(!strcmp(DOF2_GetString(hFile, "Proprietario"), "Ninguem", true)) { CasaPickup[casaid] = CreatePickup(1273, 23, Pickupx, Pickupy, Pickupz); format(gStr, sizeof(gStr), "Casa {FFFFFF}ID %d {FFFFFF}- {00FF00}Sem dono(a)\n{FFFFFF}/Casa Info", DOF2_GetInt(hFile, "Numero")); CasaLabel[casaid] = Create3DTextLabel(gStr, COR_BRANCO, Pickupx, Pickupy, Pickupz + 0.75, 20.0,0,1); } else if(strcmp(DOF2_GetString(hFile, "Proprietario"), "Ninguem", false)) { CasaPickup[casaid] = CreatePickup(1272, 23, Pickupx, Pickupy, Pickupz); format(gStr, sizeof(gStr), "Casa {FFFFFF}ID %d {FFFFFF}- {FF0000}Possui dono(a)\n{FFFFFF}/Casa Info", DOF2_GetInt(hFile, "Numero")); CasaLabel[casaid] = Create3DTextLabel(gStr, COR_BRANCO, Pickupx, Pickupy, Pickupz + 0.75, 20.0,0,1); } }
Код:
C:\Users\NET WORLD\Desktop\SERVER\gamemodes\GM.pwn(933) : error 017: undefined symbol "CasaInfo" C:\Users\NET WORLD\Desktop\SERVER\gamemodes\GM.pwn(933) : warning 215: expression has no effect C:\Users\NET WORLD\Desktop\SERVER\gamemodes\GM.pwn(933) : error 001: expected token: ";", but found "]" C:\Users\NET WORLD\Desktop\SERVER\gamemodes\GM.pwn(933) : error 029: invalid expression, assumed zero C:\Users\NET WORLD\Desktop\SERVER\gamemodes\GM.pwn(933) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
CasaInfo[casaid][Numero] = casaid;