Search Results
I think it should work if you put this on top of OnPlayerCommandText PHP код: public OnPlayerCommandText(playerid, cmdtext[]) {     new cmd[30], params[128];     sscanf(cmdtext, "...
123
Quote: Originally Posted by MerryDeer How to get distancebetweenpoints in 2d? http://forum.sa-mp.com/showpost.php?...82&postcount=2 EDIT: sry actually this is 3d but why do you wan...
125
Quote: Originally Posted by StR_MaRy yea rocky but i want to use /repair just for one generator then another one use /repair not using /repair and repair all 12 generators and as i know i...
155
It's easier to use for PHP код: new generators[12];CMD:push(playerid, params[]){    new ready=1;    for (new i=0; i<12; i++)    {        if(generators[i]==0) rea...
155
Quote: Originally Posted by ThatFag Код: new Generator[12]; CMD:repair(playerid) { if(Generator[1] == 1 || Generator[2] == 1 // and so on till 12) { making an generator be 1 ...
155
Isn't that part when you're setting PlayerInfo[playerid] enums to zero supposed to be in the if(PlayerInfo[playerid][vModel])? Also i don't understand your logic behind vModel so can you explain what ...
159
You forgot to add else on the last statement and else if on the 2nd so replace 2nd if with else if and add an else on the last one, it should look like this: PHP код: ocmd:members(playerid,par...
61
First of all add this on the beginning of your script ( below the includes ): PHP код: new trucks[18]={1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18}; new ne...
100
Have you defined AddHouse before those error lines ( 791 - 816 )? Can you give us those lines ( 791-816 ) ?
390
Do you have AddHouse defined? Can you give us those lines?
143
I don't see the problem in it, you should just remove those truck[x] and put all of those 18 AddStaticVehicleEx truck spawning functions in the pawn Код: public OnGameModeInit() like this: paw...
100
I think that I've already told you this but i haven't explained it well. You can't use PlayerName2(playerid) if you don't have it defined so you should either define/stock it or start replacing it wi...
126
There's no such a thing as "frename" you have to write your own function or find someone's
116
Are you sure that the error is in that part of code? I didn't get that error when writing it
158
What's the difference between pVeh, pVVeh and pBVeh? I notice that the buyer gets the vehicle only in the first case ( if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pVeh]) )
159
You should make new variables and assign them armour and health status pawn Код: new Float:health;GetPlayerHealth(playerid, health);INI_WriteInt(file, "Health", health); Do the same thing with arm...
68
There are several ways you can store data (dini, y_ini, txt etc.). You can search for tutorials about them or ask us if you don't understand them.
167
Quote: Originally Posted by Knowinne Can you give me the right code for it ? If so, Please send. pawn Код: #if defined USE_STATSCMD:stats(playerid,params[]) {    new string[256], ...
190
I think you should set bigger string size, try string[256] EDIT: Try using: pawn Код: GetPlayerName(player1, free_string, sizeof(free_string)) instead of pawn Код: PlayerName2(player1)
190
Really good tutorial, that was exactly what I was looking for! Ty
2,445