[Pomoc] Event.

Započeo Darko, Decembar 19, 2010, 21:56:53 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Ovako , imam jedan event.. sve je u MTA gotovo , pomicni objekti i sve to...

Sad me zanima , kako da ja naskriptam kada netko posalje svoj ID na npr. /atalk i ja ga prozovem na race ,

i kad se start race on se porta na to mjesto sa gunom u ruci ?...

Jel moze netko pokazat mi tu ?..

da... to i mene zanima... moze li nam netko to objasniti?
FREE MAPPER

E sry sto te zezam jel mozes mi to u .pwn formatu staviti...

jer inace ja sam malo poglup pa neznam sloziti ljepo to da mi radi....

i da napises gdje sta zaljepiti , novi sam jos u ovome.. sry

heh , evo opet ja.. xd

CitatC:\Documents and Settings\Administrator\My Documents\EDITOR\CroMafia 0.3b - V1.1\gamemodes\cmr.pwn(11155) : error 017: undefined symbol "i"
C:\Documents and Settings\Administrator\My Documents\EDITOR\CroMafia 0.3b - V1.1\gamemodes\cmr.pwn(30958) : error 017: undefined symbol "i"
C:\Documents and Settings\Administrator\My Documents\EDITOR\CroMafia 0.3b - V1.1\gamemodes\cmr.pwn(30960) : error 017: undefined symbol "i"
C:\Documents and Settings\Administrator\My Documents\EDITOR\CroMafia 0.3b - V1.1\gamemodes\cmr.pwn(30961) : error 017: undefined symbol "i"
C:\Documents and Settings\Administrator\My Documents\EDITOR\CroMafia 0.3b - V1.1\gamemodes\cmr.pwn(30962) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

11155 -
CitatTrka = 1;
30958 -
Citatif(Trka == 1)
30960 -
CitatGameTextForPlayer(i, "~G~Start!!!", 2500, 5);
30961 -
CitatSetPlayerPos(i, 2336.3093,-2581.1367,36.2088); //zameni svojim koordinatama
30962 -
CitatGivePlayerWeapon(playerid, 24, 20000);

Moze pomoc :D

Evo edit hoxxy-eve...


Skroz gore, gde su ti ostale promenjive:
new Trka[MAX_PLAYERS];

Negde pod OnPlayerConnect
Trka[playerid] = 0;


Pod OnPlayerCommandText, gde su ti ostale komande:
if(strcmp(cmd, "/pozovinatrku", true) == 0)
{
   tmp = strtok(cmdtext, idx);
   if(!strlen(tmp))
   {
      SendClientMessage(playerid, COLOR_GRAD2, "/pozovinatrku [id]");
      return 1;
   }
   new hPozvanigracid;
   hPozvanigracid = ReturnUser(tmp);
   if(IsPlayerConnected(hPozvanigracid))
   {
      Trka[i] = 1;
      SendClientMessage(hPozvanigracid, COLOR_RED, "Pozvan si na trku");
   }
   else
   {
      SendClientMessage(playerid, COLOR_RED, "Krivi id");
   }
   return 1;
}


if(strcmp(cmd, "/pokrenitrku", true) == 0)
{
   TrkaStart();
   return 1;
}



Skroz na kraju moda:
forward TrkaStart();
public TrkaStart()
{
   for(new i; i < MAX_PLAYERS; i++)
   {
      if(Trka[i] == 1)
      {
         GameTextForPlayer(i, "~G~Start!!!", 2500, 5);
         SetPlayerPos(i, XPoz, YPoz, ZPoz); //zameni svojim koordinatama
         GivePlayerWeapon(playerid, 24, 20000);
      }
   }
   return 1;
}


CitatC:\Documents and Settings\Administrator\My Documents\EDITOR\CroMafia 0.3b - V1.1\gamemodes\cmr.pwn(11153) : error 017: undefined symbol "i"
C:\Documents and Settings\Administrator\My Documents\EDITOR\CroMafia 0.3b - V1.1\gamemodes\cmr.pwn(30963) : error 017: undefined symbol "i"
C:\Documents and Settings\Administrator\My Documents\EDITOR\CroMafia 0.3b - V1.1\gamemodes\cmr.pwn(30965) : error 017: undefined symbol "i"
C:\Documents and Settings\Administrator\My Documents\EDITOR\CroMafia 0.3b - V1.1\gamemodes\cmr.pwn(30966) : error 017: undefined symbol "i"
C:\Documents and Settings\Administrator\My Documents\EDITOR\CroMafia 0.3b - V1.1\gamemodes\cmr.pwn(30967) : error 017: undefined symbol "i"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

Stalno mi to pokazuje ?...

Dali mi nesto fali za to " i " u scripti ?ili ?...

Sada sve radi , hvala svima..

Ako bude pitanja , javim ovdje..