Peršokti į turinį

Pagalbos del /event komandos


Recommended Posts

Krc Sveiki galit padet del event komandos viskas ok del event komandos tik del /prisijungti i event meto warning

 

    if(!strcmp(cmdtext, "/prisijungti", true,12))
{
   if(playerDB[playerid][admin] != true){SendClientMessage(playerid, COLOR_RED, " Tokios komandos nera!"); return 1;}
   if(cmdtext[5]==0){SendClientMessage(playerid, GREEN, "* Naudojimas: /prisijungti <event kurejo ID>"); return 1;}
   new zin[128], giveID = cmdtext[13], Float: zPos[3];
   if( !IsPlayerConnected(giveID) ) return SendClientMessage(playerid, GREEN, "* Tokio zaidejo nera!");
   if( !EventStarted[giveID] ) return SendClientMessage(playerid, GREEN, "* Sis zaidejas nepaskelbes evento!");
   GetPlayerPos(giveID, zPos[0],zPos[1],zPos[2]);
   SetPlayerPos(playerid, zPos[0],zPos[1],zPos[2]);
   SetPlayerInterior(playerid, GetPlayerInterior(giveID));
   SendClientMessage(playerid,-1, "Prisijungei prie evento");
   return 1;

Warningas:   warning 204: symbol is assigned a value that is never used: "zin"
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
 

Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

zin[128]
sukurta, bet niekur nepanaudota. Ištrink. + nenaudok strcmp, naudok zcmd.inc

 

SetPlayerPos(playerid, zPos[0],zPos[1] + 0.5,zPos[2]);

Padaryk taip, jog nespawnint┼│ ant ved─Śjo.

Redaguota , nario mariusqw
Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

(redaguota)

tai man tipo sita istrint new zin[128], giveID = cmdtext[13], Float: zPos[3]; ir pakeist i sita

 

 

SetPlayerPos(playerid, zPos[0],zPos[1] + 0.5,zPos[2]);

sory naujokas  ant pawno nesigaudau xdd

Redaguota , nario Brett Sobolev
Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

if(!strcmp(cmdtext, "/prisijungti", true,12))
{
   if(playerDB[playerid][admin] != true){SendClientMessage(playerid, COLOR_RED, " Tokios komandos nera!"); return 1;}
   if(cmdtext[5]==0){SendClientMessage(playerid, GREEN, "* Naudojimas: /prisijungti <event kurejo ID>"); return 1;}
   if( !IsPlayerConnected(giveID) ) return SendClientMessage(playerid, GREEN, "* Tokio zaidejo nera!");
   if( !EventStarted[giveID] ) return SendClientMessage(playerid, GREEN, "* Sis zaidejas nepaskelbes evento!");
     
   new giveID = cmdtext[13], Float: zPos[3];
     
   GetPlayerPos(giveID, zPos[0],zPos[1],zPos[2]);
   SetPlayerPos(playerid, zPos[0],zPos[1] + 0.5,zPos[2]);
   SetPlayerInterior(playerid, GetPlayerInterior(giveID));
     
   SendClientMessage(playerid,-1, "Prisijungei prie evento");
   return 1;
}

 

Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

(redaguota)

   if( !IsPlayerConnected(giveID) ) return SendClientMessage(playerid, GREEN, "* Tokio zaidejo nera!");
   if( !EventStarted[giveID] ) return SendClientMessage(playerid, GREEN, "* Sis zaidejas nepaskelbes evento!");  situose

Redaguota , nario Brett Sobolev
Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

if(!strcmp(cmdtext, "/prisijungti", true,12))
{
   new giveID = cmdtext[13], Float: zPos[3];

   if(playerDB[playerid][admin] != true){SendClientMessage(playerid, COLOR_RED, " Tokios komandos nera!"); return 1;}
   if(cmdtext[5]==0){SendClientMessage(playerid, GREEN, "* Naudojimas: /prisijungti <event kurejo ID>"); return 1;}
   if( !IsPlayerConnected(giveID) ) return SendClientMessage(playerid, GREEN, "* Tokio zaidejo nera!");
   if( !EventStarted[giveID] ) return SendClientMessage(playerid, GREEN, "* Sis zaidejas nepaskelbes evento!");
     
   GetPlayerPos(giveID, zPos[0],zPos[1],zPos[2]);
   SetPlayerPos(playerid, zPos[0],zPos[1] + 0.5,zPos[2]);
   SetPlayerInterior(playerid, GetPlayerInterior(giveID));
     
   SendClientMessage(playerid,-1, "Prisijungei prie evento");
   return 1;
}

Sorriukas :D

  • Teigiamai 1
Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

Sve─Źias
┼ái tema yra u┼żrakinta.
  • ┼áiame puslapyje nar┼ío:   0 nariai

    • N─Śra registruot┼│ nari┼│ per┼żi┼źrin─Źi┼│ ┼í─» forum─ů.

├Ś
├Ś
  • Sukurti nauj─ů...