kkkkkkkkkkkkkkk
esse forum deixa minha vida mais alegre, me cago rindo os posts de vcs kkkkkkkkkk |
GangZoneShowForPlayer(GZCriadas[i],Azul);
GangZoneFlashForAll(GZCriadas[i], GetPlayerColor(playerid))
warning 202: number of arguments does not match definition:
Code:
GangZoneShowForPlayer(GZCriadas[i],Azul); Code:
GangZoneFlashForAll(GZCriadas[i], GetPlayerColor(playerid)) |
for(new i; i < MAX_PLAYERS; i ++)
{
GangZoneFlashForAll(GZCriadas[i], GetPlayerColor(playerid))
}
@Garfield:
Nгo sabe valor de MAX_PLAYERS nгo? for (new i=0; i < GZS_CRIADAS; i++) |
@Garfield:
Nгo sabe valor de MAX_PLAYERS nгo? for (new i=0; i < GZS_CRIADAS; i++) |
for (new i=0; i < GZS_CRIADAS; i++)
D:\Servers\GTA Samp\gamemodes\EmConstruзao.pwn(163) : error 052: multi-dimensional arrays must be fully initialized
D:\Servers\GTA Samp\gamemodes\EmConstruзao.pwn(759) : warning 202: number of arguments does not match definition
D:\Servers\GTA Samp\gamemodes\EmConstruзao.pwn(1760) : error 017: undefined symbol "i"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
new CordGZs[GZS_CRIADAS][4] =
{
{2217,1901,2333,2013},
{1875,641,1978,764},
{-2201,-281,-2011,-80},
{-2015,1375,-1799,1601}
>>>> };
for (new i = 0; i <GZS_CRIADAS; i++) // Loop
{
>>>> GangZoneShowForPlayer(GZCriadas[i],COLOR_WHITE);
printf("Gang Zone %s Criada com sucesso",NomesGZs[i]);
}
if(strcmp(cmd, "/dominar", true) == 0)
{
if(!IsAreaInGangCheck(playerid)) SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Vocк nгo estб em nenhuma Gang Zone,FAIL");
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
for (new i=0; i < GZS_CRIADAS; i++)
if (x > CordGZs[i][0] && y > CordGZs[i][1] && x < CordGZs[i][2] && y < CordGZs[i][3]&& z < 500)
{
format(string, sizeof(string), "%s comeзou a dominar a gang zone %s.",name,NomesGZs[i]);
}
SendClientMessageToAll(0xFFFF00AA, string);
>>>> GangZoneFlashForAll(GZCriadas[i], GetPlayerColor(playerid))
SetTimer("Terminar",60000,false);
return 1;
}
C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV.pwn(57) : error 017: undefined symbol "GZS_CRIADAS" C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV.pwn(59) : error 017: undefined symbol "GZCriadas" C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV.pwn(59) : warning 215: expression has no effect C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV.pwn(59) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV.pwn(59) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV.pwn(59) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
57>> for (new i=0; i < GZS_CRIADAS; i++) { 59>> GZCriadas[i] = GangZoneCreate(CordGZs[i][0], CordGZs[i][1], CordGZs[i][2], CordGZs[i][3]);
#include <a_samp> #if defined FILTERSCRIPT #define GZS_CRIADAS 8 new GZCriadas[GZS_CRIADAS]; new NomesGZs[GZS_CRIADAS][] = 8 { "Castelo", "Estasao", "AeroDoDeserto", "Motel", "PARKE", "Autrodomo", "LagoPirata", "Royale" }; new CordGZs[GZS_CRIADAS][4] = { {2075.157470, 989.061279, 2339.157470, 1189.061279}, // Castelo {1250.794311, 2631.961425, 1538.794311, 2703.961425}, // Estasao {73.848297, 2400.415039, 489.848297, 2624.415039}, // AeroDoDeserto {2030.552490, 2113.295410, 2118.552490, 2201.295410}, // Motel {2430.995849, 1477.328247, 2598.995849, 1613.328247}, // PARKE {1013.292236, 1411.981079, 1205.292236, 1683.981079}, // Audrodomo {1859.144165, 1448.397216, 2043.144165, 1704.397216}, // LagoPirata {2073.381347, 1385.136718, 2241.381347, 1545.136718} // Royale };
#include <a_samp> #if defined FILTERSCRIPT #define GZS_CRIADAS 8 new GZCriadas[GZS_CRIADAS]; new NomesGZs[GZS_CRIADAS][] = 8 { "Castelo", "Estasao", "AeroDoDeserto", "Motel", "PARKE", "Autrodomo", "LagoPirata", "Royale" }; new CordGZs[GZS_CRIADAS][8] = { //o numero dentro da array tem que tб de acordo com os codigos abaixo! {2075.157470, 989.061279, 2339.157470, 1189.061279}, // Castelo - X,Y,X,Y {1250.794311, 2631.961425, 1538.794311, 2703.961425}, // Estasao - X,Y,X,Y {73.848297, 2400.415039, 489.848297, 2624.415039}, // AeroDoDeserto- X,Y,X,Y {2030.552490, 2113.295410, 2118.552490, 2201.295410}, // Motel- X,Y,X,Y {2430.995849, 1477.328247, 2598.995849, 1613.328247}, // PARKE- X,Y,X,Y {1013.292236, 1411.981079, 1205.292236, 1683.981079}, // Audrodomo- X,Y,X,Y {1859.144165, 1448.397216, 2043.144165, 1704.397216}, // LagoPirata- X,Y,X,Y {2073.381347, 1385.136718, 2241.381347, 1545.136718} // Royale- X,Y,X,Y };
warning: 219: local variable "string" shadows a variable at a preceding level
error: 017: undefined symbol "i"
if(!strcmp(cmdtext, "/trdo", true))
{
if(!IsAreaInGangCheck(playerid)) SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Vocк nгo estб na Mata");
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
>> new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
for (new i=0; i < GZS_CRIADAS; i++)
if (x > CordGZs[i][0] && y > CordGZs[i][1] && x < CordGZs[i][2] && y < CordGZs[i][3]&& z < 500) {
format(string, sizeof(string), "%s comeзou a dominar a %s.",name,NomesGZs[i]);
}
SendClientMessageToAll(0xFFFF00AA, string);
>>GangZoneFlashForAll(GZCriadas[i], GetPlayerColor(playerid))
SetTimer("Terminar",60000,false);
return 1;
}
Pessoal sei que o tуpico й antigo,mas estou usando ele para criar uma GZ '-'
Deu alguns erros: pawn Code:
|