Learning Pawn.
#8

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.

pawn Code:
new stat[32];
Creates a new 32-cell array.
pawn Code:
strmid(stat, tmp, 0, sizeof(stat), sizeof(stat));
Extracts the data inside "tmp" array into the "stat" array, starting at position 0. - https://sampwiki.blast.hk/wiki/Strmid
pawn Code:
if(strcmp(stat, "Cash", true) == 0)
Compares the contents of "stat" to the word "Cash", while ignoring case. - https://sampwiki.blast.hk/wiki/strcmp
pawn Code:
if(GetPlayerCash(playerid) >= 200)
Checks if the player's money is greater than or equal to 200.
pawn Code:
if(GasTanks[playerid] == 3)
Checks if the 'GasTanks' variable for 'playerid' is equal to 3.
Reply


Messages In This Thread
[No subject] - by 07wilsonaf - 09.02.2011, 18:35
Re: Learning Pawn. - by alpha500delta - 09.02.2011, 19:08
Re: Learning Pawn. - by Max_Coldheart - 09.02.2011, 19:09
Re: Learning Pawn. - by 07wilsonaf - 09.02.2011, 19:12
Re: Learning Pawn. - by 07wilsonaf - 09.02.2011, 19:13
Re: Learning Pawn. - by Max_Coldheart - 09.02.2011, 19:26
Re: Learning Pawn. - by 07wilsonaf - 09.02.2011, 19:51
Re: Learning Pawn. - by Grim_ - 09.02.2011, 19:56
Re: Learning Pawn. - by admantis - 09.02.2011, 19:57
Re: Learning Pawn. - by Grim_ - 09.02.2011, 20:01

Forum Jump:


Users browsing this thread: 3 Guest(s)