SA-MP Forums Archive
can you help me for this sir to add - 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)
+--- Thread: can you help me for this sir to add (/showthread.php?tid=621978)



can you help me for this sir to add - roldan21 - 17.11.2016

sir help me please to add in my script pwn i dont know how too add and fix my script




public OnPlayerSpawn(playerid)
{
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, 1);
return 1;
}


Re: can you help me for this sir to add - SyS - 17.11.2016

Whats the problem?


Re: can you help me for this sir to add - roldan21 - 17.11.2016

Quote:
Originally Posted by Sreyas
Посмотреть сообщение
Whats the problem?
my problem sir is i dont know how to add this im not a pro scripter sir


Re: can you help me for this sir to add - roldan21 - 17.11.2016

Quote:
Originally Posted by Sreyas
Посмотреть сообщение
Whats the problem?
sir Sreyes can you help me please ?


Re: can you help me for this sir to add - AndySedeyn - 17.11.2016

  1. Select the code
  2. Press and hold CTRL
  3. While holding CTRL, press C
  4. You can now release CTRL
  5. Go to your gamemode
  6. Click on a line where there is no code
  7. Press and hold CTRL again
  8. While holding CTRL, press V
  9. Release CTRL
  10. Compile
This isn't a scripting issue; it's you being unable to work with a text editor.


Re: can you help me for this sir to add - roldan21 - 17.11.2016

Quote:
Originally Posted by AndySedeyn
Посмотреть сообщение
  1. Select the code
  2. Press and hold CTRL
  3. While holding CTRL, press C
  4. You can now release CTRL
  5. Go to your gamemode
  6. Click on a line where there is no code
  7. Press and hold CTRL again
  8. While holding CTRL, press V
  9. Release CTRL
  10. Compile
This isn't a scripting issue; it's you being unable to work with a text editor.
how To This sir ??


C:\Users\vhin0020\Desktop\PHCNR-2017-2019new update\PHCNR-2017-2019\PHCNR 2017\samp037_svr_R2-1-1_win32\gamemodes\PHCNR.pwn(28454) : error 021: symbol already defined: "S@@_OnPlayerSpawn"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


Re: can you help me for this sir to add - Pearson - 17.11.2016

Hello. search OnPlayerSpawn public in your gamemode, then add this
PHP код:
SetPlayerSkillLevel(playeridWEAPONSKILL_PISTOL1);
SetPlayerSkillLevel(playeridWEAPONSKILL_PISTOL_SILENCED1);
SetPlayerSkillLevel(playeridWEAPONSKILL_DESERT_EAGLE1);
SetPlayerSkillLevel(playeridWEAPONSKILL_SHOTGUN1);
SetPlayerSkillLevel(playeridWEAPONSKILL_SAWNOFF_SHOTGUN1);
SetPlayerSkillLevel(playeridWEAPONSKILL_SPAS12_SHOTGUN1);
SetPlayerSkillLevel(playeridWEAPONSKILL_MICRO_UZI1);
SetPlayerSkillLevel(playeridWEAPONSKILL_MP51);
SetPlayerSkillLevel(playeridWEAPONSKILL_AK471);
SetPlayerSkillLevel(playeridWEAPONSKILL_M41);
SetPlayerSkillLevel(playeridWEAPONSKILL_SNIPERRIFLE1); 



Re: can you help me for this sir to add - roldan21 - 17.11.2016

Quote:
Originally Posted by Pearson
Посмотреть сообщение
Hello. search OnPlayerSpawn public in your gamemode, then add this
PHP код:
SetPlayerSkillLevel(playeridWEAPONSKILL_PISTOL1);
SetPlayerSkillLevel(playeridWEAPONSKILL_PISTOL_SILENCED1);
SetPlayerSkillLevel(playeridWEAPONSKILL_DESERT_EAGLE1);
SetPlayerSkillLevel(playeridWEAPONSKILL_SHOTGUN1);
SetPlayerSkillLevel(playeridWEAPONSKILL_SAWNOFF_SHOTGUN1);
SetPlayerSkillLevel(playeridWEAPONSKILL_SPAS12_SHOTGUN1);
SetPlayerSkillLevel(playeridWEAPONSKILL_MICRO_UZI1);
SetPlayerSkillLevel(playeridWEAPONSKILL_MP51);
SetPlayerSkillLevel(playeridWEAPONSKILL_AK471);
SetPlayerSkillLevel(playeridWEAPONSKILL_M41);
SetPlayerSkillLevel(playeridWEAPONSKILL_SNIPERRIFLE1); 
hello sir thi is my problem

http://imgur.com/a/JizXC


Re: can you help me for this sir to add - Vince - 17.11.2016

Quote:
Originally Posted by roldan21
Посмотреть сообщение
hello sir thi is my problem

http://imgur.com/a/JizXC
My views may be skewed because I'm an experienced coder, but how can anyone be so incredibly dense? I believe even a complete novice should be able to figure out what is wrong merely by looking at how the code around it is structured.


Re: can you help me for this sir to add - SyS - 17.11.2016

Quote:
Originally Posted by roldan21
Посмотреть сообщение
sir Sreyes can you help me please ?
Oh my mate looks like you haven't touch anything yet.
Start by learning some basics of pawn language and refer to samp wiki to get an idea on scripting.