SA-MP Forums Archive
is possible in pawno? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: is possible in pawno? (/showthread.php?tid=108307)



is possible in pawno? - Sfinx_17 - 13.11.2009

in pawno i can make myself a code with "if " "else" "if else" etc? plz help i am noob at scripting yet.


Re: is possible in pawno? - Correlli - 13.11.2009

https://sampwiki.blast.hk/wiki/Keywords:Statements#if
https://sampwiki.blast.hk/wiki/Keywords:Statements#else

But in some cases, it's better to use switch:
https://sampwiki.blast.hk/wiki/Keywords:Statements#switch


Re: is possible in pawno? - Sfinx_17 - 13.11.2009

i allready study that. but i wanna know....i can make myself a code?


Re: is possible in pawno? - denbo1 - 13.11.2009

You can make an include if that helps, but without saying your full idea i got nothing


Re: is possible in pawno? - Sfinx_17 - 13.11.2009

i don't understand so i can or i can't?


Re: is possible in pawno? - Sfinx_17 - 14.11.2009

so that means i can create my own code's that i am trying to say so i can ok thanks


Re: is possible in pawno? - Sew_Sumi - 14.11.2009

Why is it that your 195th post (or somewhere near that) is asking this now

After you've posted so much in the forums?

Wouldn't you have seen the code of others and known that you can

http://forum.sa-mp.com/index.php?act...3;sa=statPanel

It's just you have 100 posts in Scripting Discussion, and 60 in 0.3 Scripting...


It just seems mad odd.


Re: is possible in pawno? - MJ! - 14.11.2009

http://forum.sa-mp.com/index.php?top...7542#msg807542

You can do something like this

pawn Код:
new bool:IAmStupid[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
  IAmStupid[playerid] = random(2); // will take only val 1 (true) or 0 (false)
  if(IAmStupid[playerid] == true)
  {
    SendClientMessage(playerid,0xCA3935FF,"You are a stupid guy :).");
  }
  else // else if(IAmStupid[playerid] == false)
  {
    SendClientMessage(playerid,0xD9E21DFF,"You're not a stupid guy :) ( jokeing )");
  }
}



Re: is possible in pawno? - Sfinx_17 - 14.11.2009

Sew what is your problem if i have 195 posts a? this is a forum forum is for question that's why i register here to fix some problems about scripting ...ok?


Re: is possible in pawno? - Sfinx_17 - 14.11.2009

man i wanna learn how to make my own code so plz somewone help me