is possible in pawno?
#1

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

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
Reply
#3

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

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

i don't understand so i can or i can't?
Reply
#6

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

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.
Reply
#8

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 )");
  }
}
Reply
#9

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?
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)