09.02.2011, 19:56
I personally learned by editing lvdm and a51 that were included in the SA:MP Download package (a51 no longer included). And there is no set time to how long it takes to learn, since you learn something new everyday! Also, just search the forums for the thousands of threads like yours. There have been multiple listed ways of learning.
Creates a new 32-cell array.
Extracts the data inside "tmp" array into the "stat" array, starting at position 0. - https://sampwiki.blast.hk/wiki/Strmid
Compares the contents of "stat" to the word "Cash", while ignoring case. - https://sampwiki.blast.hk/wiki/strcmp
Checks if the player's money is greater than or equal to 200.
Checks if the 'GasTanks' variable for 'playerid' is equal to 3.
pawn Code:
new stat[32];
pawn Code:
strmid(stat, tmp, 0, sizeof(stat), sizeof(stat));
pawn Code:
if(strcmp(stat, "Cash", true) == 0)
pawn Code:
if(GetPlayerCash(playerid) >= 200)
pawn Code:
if(GasTanks[playerid] == 3)