RobertN
-
Posts
17 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Posts posted by RobertN
-
-
Mai aveam cateva gm-uri in pc dar nu am gasit ... are cineva comanda ? pls
-
1 si 2 am rezolvat.
La 3 are cineva o rezolvare va rog ?? cum pun maximul de caractere la comanda /ad?
-
Up, ma ajuta cineva ?
-
1.Am umblat la masinile de la nfs , le-am adaugat tuning (nos, spoiler..etc) . Problema este ca , dau drumu la server , merg la nfs spawn si apar masinile ne-tunate , daca dau /rac apar cele tunate . De ce ?
2.Am aceasta comanda : [pawn]if(strcmp(cmd, "/alias", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "{D580FE}Foloseste:{FFFFFF} /alias [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
new str[128], tmp3[50];
if(IsPlayerConnected(giveplayerid))
{
GetPlayerIp(giveplayerid,tmp3,50);
GetPlayerName(giveplayerid, playername, sizeof(playername));
format(str,sizeof(str),"Aliases for %s (%d) are: %s", playername, giveplayerid, dini_Get("users/Aliases/alias.txt",tmp3) );
return SendClientMessage(playerid,COLOR_GREY,str);
}
else return SendClientMessage(playerid, COLOR_GREY, "* Playerul nu este conectat sau esti tu *");
}
else return SendClientMessage(playerid,COLOR_GREY,"* Eroare: Nu ai Admin destul de mare pentru a folosi aceasta comanda");
}
return 1;
}[/pawn]
Vreau ca aceasta comanda sa nu poata fi folosita pe owneri, ce trebuie sa adaug in ea ?
3.Am comanda /ad [pawn]if(strcmp(cmd, "/advertise", true) == 0 || strcmp(cmd, "/ad", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
if(PlayerInfo[playerid][pLevel] < 4)
{
SendClientMessage(playerid, COLOR_LIGHTGREEN, " You must be level 4 to use this!");
return 1;
}
if ((noad) && PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " Comanda /ad a fost oprita temporar !");
return 1;
}
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, " Momentan esti legat la gura si nu poti vorbi !");
return 1;
}
if(PlayerTied[playerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, " you can`t use this command because you are tied!");
return 1;
}
if(Event7[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, " You can't use /ad beacause you have /event. !");
return 1;
}
if(PlayerInfo[playerid][pAD] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, " You are restricted to use this command !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[128];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "{D580FE}Foloseste:{FFFFFF} (/ad)vertise [advert text]");
return 1;
}
if ((!adds) && (PlayerInfo[playerid][pAdmin] < 1))
{
format(string, sizeof(string), " Please try again later %d seconds between Advertisements !", (addtimer/1000));
SendClientMessage(playerid, COLOR_GRAD2, string);
return 1;
}
new payout = idx * 50;//era 25
if(GetPlayerMoney(playerid) < payout)
{
format(string, sizeof(string), "* You used %d characters which cost $%d, you don't have enough.", offset, payout);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
return 1;
}
for(new i; i < sizeof(TLD); i++)
{
if(strfind(result, TLD, true) != -1)
{
if(strfind(result, "-", true) != -1 || strfind(result, "-", true) != -1 || strfind(result, "-", true) != -1) break; // Filter out your own website
SendClientMessage(playerid, COLOR_WHITE, " Te rugam sa nu mai faci reclama!");
return 1;
}
}
if(GoIP(result))
{
new reclama[MAX_PLAYER_NAME];
GetPlayerName(playerid, reclama, sizeof(reclama));
SendClientMessage(playerid, 0xFF0000FF, "Te rugam sa nu mai faci reclama!");
return 1;
}
GivePlayerMoney(playerid, - payout);
SBizzInfo[7][sbTill] += payout;
ExtortionSBiz(7, payout/4);
format(string, sizeof(string), "Advertisement: {FFFFFF}%s, {FFAF00}Contact: {F3FF02}%s {FFAF00}Ph: %d", result, sendername,PlayerInfo[playerid][pPnumber]);
OOCNews(TEAM_GROVE_COLOR,string);
format(string, sizeof(string), "~r~Paid $%d~n~~w~Message contained: %d Characters", payout, idx);
GameTextForPlayer(playerid, string, 5000, 5);
if (PlayerInfo[playerid][pAdmin] < 1){SetTimer("AddsOn", addtimer, 0);adds = 0;}
}
return 1;
}[/pawn]
Cum setez numarul maxim de caractere ?
+1 pentru cine ma ajuta, ms.
-
Si cum fac asta ? Si mai exact ce include-uri ar trebui sa iau ?
-
Am intampinat o problema la gm , primesc 26 de erori :
[pawn]C:\Documents and Settings\\pawno\include\fuckcleo.inc(76) : warning 201: redefinition of constant/macro (symbol "RepairVehicle")
C:\Documents and Settings\\gamemodes\gamemod.pwn(278) : warning 201: redefinition of constant/macro (symbol "GetPlayerMoney")
C:\Documents and Settings\\gamemodes\gamemod.pwn(279) : warning 201: redefinition of constant/macro (symbol "ResetPlayerMoney")
C:\Documents and Settings\\gamemodes\gamemod.pwn(280) : warning 201: redefinition of constant/macro (symbol "GivePlayerMoney")
C:\Documents and Settings\\gamemodes\gamemod.pwn(281) : warning 201: redefinition of constant/macro (symbol "PutPlayerInVehicle")
C:\Documents and Settings\\gamemodes\gamemod.pwn(282) : warning 201: redefinition of constant/macro (symbol "GivePlayerWeapon")
C:\Documents and Settings\\gamemodes\gamemod.pwn(283) : warning 201: redefinition of constant/macro (symbol "SetPlayerPos")
C:\Documents and Settings\\gamemodes\gamemod.pwn(284) : warning 201: redefinition of constant/macro (symbol "SetVehiclePos")
C:\Documents and Settings\\gamemodes\gamemod.pwn(3496) : error 017: undefined symbol "JB_GivePlayerMoney"
C:\Documents and Settings\\gamemodes\gamemod.pwn(3529) : error 017: undefined symbol "JB_GivePlayerMoney"
C:\Documents and Settings\\gamemodes\gamemod.pwn(3571) : error 017: undefined symbol "JB_GivePlayerWeapon"
C:\Documents and Settings\\gamemodes\gamemod.pwn(3600) : error 017: undefined symbol "JB_SetPlayerPos"
C:\Documents and Settings\\gamemodes\gamemod.pwn(3982) : error 017: undefined symbol "JB_SetPlayerPos"
C:\Documents and Settings\\gamemodes\gamemod.pwn(4013) : error 017: undefined symbol "JB_SetPlayerPos"
C:\Documents and Settings\\gamemodes\gamemod.pwn(4194) : error 017: undefined symbol "JB_SetPlayerPos"
C:\Documents and Settings\\gamemodes\gamemod.pwn(4714) : error 017: undefined symbol "JB_GivePlayerMoney"
C:\Documents and Settings\\gamemodes\gamemod.pwn(4765) : error 017: undefined symbol "JB_GivePlayerMoney"
C:\Documents and Settings\\gamemodes\gamemod.pwn(4816) : error 017: undefined symbol "JB_GivePlayerMoney"
C:\Documents and Settings\\gamemodes\gamemod.pwn(5336) : error 017: undefined symbol "JB_GivePlayerMoney"
C:\Documents and Settings\\gamemodes\gamemod.pwn(5904) : error 017: undefined symbol "JB_GivePlayerMoney"
C:\Documents and Settings\\gamemodes\gamemod.pwn(6145) : error 017: undefined symbol "JB_SetPlayerPos"
C:\Documents and Settings\\gamemodes\gamemod.pwn(6155) : error 017: undefined symbol "JB_SetPlayerPos"
C:\Documents and Settings\\gamemodes\gamemod.pwn(6196) : error 017: undefined symbol "JB_SetPlayerPos"
C:\Documents and Settings\\gamemodes\gamemod.pwn(6200) : error 017: undefined symbol "JB_GivePlayerWeapon"
C:\Documents and Settings\\gamemodes\gamemod.pwn(6217) : error 017: undefined symbol "JB_SetPlayerPos"
C:\Documents and Settings\\gamemodes\gamemod.pwn(6225) : error 017: undefined symbol "JB_GivePlayerWeapon"
C:\Documents and Settings\\gamemodes\gamemod.pwn(6237) : error 017: undefined symbol "JB_SetPlayerPos"
C:\Documents and Settings\\gamemodes\gamemod.pwn(6245) : error 017: undefined symbol "JB_GivePlayerWeapon"
C:\Documents and Settings\\gamemodes\gamemod.pwn(6257) : error 017: undefined symbol "JB_SetPlayerPos"
C:\Documents and Settings\\gamemodes\gamemod.pwn(6265) : error 017: undefined symbol "JB_GivePlayerWeapon"
C:\Documents and Settings\\gamemodes\gamemod.pwn(6266) : error 017: undefined symbol "JB_GivePlayerWeapon"
C:\Documents and Settings\\gamemodes\gamemod.pwn(6267) : error 017: undefined symbol "JB_GivePlayerWeapon"
C:\Documents and Settings\Rgamemodes\gamemod.pwn(6268) : error 017: undefined symbol "JB_GivePlayerWeapon"
C:\Documents and Settings\\gamemodes\gamemod.pwn(6269) : error 017: undefined symbol "JB_GivePlayerWeapon"[/pawn]
Am incercat sa caut acolada gresita cu brackets fix , am gasit ceva dar tot primesc erorile..
-
Salut [pawn]. Am incercat comanda de la tine dar primesc urmatoarele erori :
warning 219: local variable "string" shadows a variable at a preceding level
error 021: symbol already defined: "string"
warning 204: symbol is assigned a value that is never used: "string"
-
Daca pun %s nu mai arata nimic, am incercat si asa..
-
Salut. Am facut o comanda dar e gresit ceva si nu stiu ce .
[pawn]if(strcmp(cmd, "/event", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new text;
text = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /event [DenumireEvent]");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
for(new i = 0; i <= MAX_PLAYERS; i ++)
{
format(string, sizeof(string), "{FF0000}%s{FFFFFF} face event %d /w pentru tp !",sendername,text);
SendClientMessage(i, COLOR_LIGHTRED, string);
}
}
return 1;
}[/pawn]
Cand scriu /event Deagle arata de ex: Nume face event "0" /w pentru tp , nu stiu de ce apare 0 , cum fac sa poata apara ce scriu eu ?
Sper sa ma ajutati, sunt mai la inceput ;)
-
Aha...deci acolo. Ok, mersi mult Gireada, puteti da T/C
-
Mersi Gireada, deci aproape cum facusem eu trebuia, dar mai am o intrebare. Cum schimb raza? de ex sa dea pe o raza de 200m, nu stiu unde am vazut si nu stiu daca e adevarat dar scria ca default este 60m.
-
Am incercat asta dar daca o pun in GM primesc erorile [pawn]C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3528) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3532) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3544) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3548) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3552) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3556) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3560) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3564) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3568) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3580) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3584) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3588) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3592) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3596) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3608) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3612) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3616) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3628) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3632) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3636) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3640) : error 004: function "PlayerToPoint" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3854) : error 017: undefined symbol "log_new_join"
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(3855) : error 017: undefined symbol "number_joins_time_range"
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(4059) : error 004: function "ClearChatbox" is not implemented
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(4167) : error 017: undefined symbol "AddLastLogin"
C:\Users\user\Desktop\RPG\gamemodes\mania.pwn(4586) : error 017: undefined symbol "PlayerName"
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.[/pawn]. Daca o sterg se compileaza.
-
Nu este ce caut eu , eu vreau sa dau heal unor jucator care sunt in apropierea mea. Ce ai pus tu acolo este sa setezi hp-ul unui player, ms oricum.
-
Salut, am incercat sa fac o comanda care sa dea jucatorilor din apropierea celui care a scris comanda, heal. Dar nu stiu cum sa fac sa dea heal doar celor de langa el , eu am incercat asa
[pawn]if(strcmp(cmdtext, "/healx", true) == 0)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if(IsPlayerInRangeOfPoint(playerid, 7.0, x, y, z))
{
SendClientMessageToAll(-1, "Cei in apropiere ati primit heal");
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SetPlayerHealth(i, 100);
}
}
}
return 1;
}[/pawn]
-
Ms Gireada, mai astept tutoriale.
-
Astept mai multe tutoriale sa mai invat si eu cv, gj..
Respawn cars
in Arhivă probleme
Posted
Da..am gasit un raspuns in care zicea " foloseste sscanf " atat... nimic mai explicit .. stie cineva cum pot seta maximul de caractere ? Cau rezolvare de ceva timp..