SA-MP Forums Archive
AddPlayerClass problem - 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: AddPlayerClass problem (/showthread.php?tid=363106)



AddPlayerClass problem - Gooday - 26.07.2012

This is the code:

pawn Код:
AddPlayerClass(267, 1542.34, -1672.17, 12.54, 3, 1, 24, 200, 29, 200); //POLICE
    AddPlayerClass(283, 1542.34, -1672.17, 12.54, 3, 1, 24, 200, 29, 200);//POLICE
    AddPlayerClass(127, 1542.34, -1672.17, 12.54, 29, 200, 0, 0, 0, 0); //POLICE
Errors:

Quote:

C:\Users\Luca\Desktop\BaseScript\gamemodes\base.pw n(105) : warning 202: number of arguments does not match definition
C:\Users\Luca\Desktop\BaseScript\gamemodes\base.pw n(106) : warning 202: number of arguments does not match definition
C:\Users\Luca\Desktop\BaseScript\gamemodes\base.pw n(107) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Warnings.

Also when I spawn the player has just the weapon id 1, why?


Re: AddPlayerClass problem - Stigg - 26.07.2012

https://sampwiki.blast.hk/wiki/AddPlayerClass


Re: AddPlayerClass problem - Captain_Mani - 26.07.2012

You haven't put an angle. Try these:

Код:
AddPlayerClass(267, 1542.34, -1672.17, 12.54, 2.7821, 3, 1, 24, 200, 29, 200); //POLICE
    AddPlayerClass(283, 1542.34, -1672.17, 12.54, 2.7821, 3, 1, 24, 200, 29, 200);//POLICE
    AddPlayerClass(127, 1542.34, -1672.17, 12.54, 2.7821, 29, 200, 0, 0, 0, 0); //POLICE