SA-MP Forums Archive
help me please.. scripr error - 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: help me please.. scripr error (/showthread.php?tid=537459)



help me please.. scripr error - ochiebws - 15.09.2014

the pawn compailer error
Код:
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(5934) : error 025: function heading differs from prototype
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(10031) : warning 202: number of arguments does not match definition
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(10031) : warning 202: number of arguments does not match definition
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(10031) : warning 202: number of arguments does not match definition
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(10031) : warning 202: number of arguments does not match definition
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(10031) : warning 202: number of arguments does not match definition
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(10031) : warning 202: number of arguments does not match definition
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(10031) : warning 202: number of arguments does not match definition
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(10031) : warning 202: number of arguments does not match definition
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(10031) : warning 202: number of arguments does not match definition
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(10031) : warning 202: number of arguments does not match definition
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(10031) : warning 202: number of arguments does not match definition
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(22082) : warning 202: number of arguments does not match definition
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(22082) : warning 202: number of arguments does not match definition
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(22082) : warning 202: number of arguments does not match definition
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(22082) : warning 202: number of arguments does not match definition
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(22082) : warning 202: number of arguments does not match definition
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(22082) : warning 202: number of arguments does not match definition
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(22082) : warning 202: number of arguments does not match definition
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(22082) : warning 202: number of arguments does not match definition
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(22082) : warning 202: number of arguments does not match definition
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(22082) : warning 202: number of arguments does not match definition
C:\Users\0CHI3\Desktop\SERVER GTA SA\IGRP\gamemodes\IGRP.pwn(22082) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
1 Error.



Re: help me please.. scripr error - Eth - 15.09.2014

show me lines: 10031 and 5934 and 22082 and also show me one line before each one.


Re: help me please.. scripr error - ochiebws - 15.09.2014

Код:
10031:SetPlayerPos(playerb, RandomAPrison[rand][0], RandomAPrison[rand][1],RandomAPrison[rand][2], RandomAPrison[rand][3], RandomAPrison[rand][4],RandomAPrison[rand][5], RandomAPrison[rand][6], RandomAPrison[rand][7],RandomAPrison[rand][8], RandomAPrison[rand][9], RandomAPrison[rand][10],RandomAPrison[rand][11], RandomAPrison[rand][12], RandomAPrison[rand][13]);
22082:		SetPlayerPos(playerb, RandomAPrison[rand][0], RandomAPrison[rand][1],RandomAPrison[rand][2], RandomAPrison[rand][3], RandomAPrison[rand][4],RandomAPrison[rand][5], RandomAPrison[rand][6], RandomAPrison[rand][7],RandomAPrison[rand][8], RandomAPrison[rand][9], RandomAPrison[rand][10],RandomAPrison[rand][11], RandomAPrison[rand][12], RandomAPrison[rand][13]);
5934:public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)



Re: help me please.. scripr error - dusk - 15.09.2014

Well SetPlayerPos only has 4 parameters:
pawn Код:
SetPlayerPos(playerid,Float:x,Float:y,Float:z)
OnPlayerShootPlayer. The error means this line is different from the forward one. Make their parameters the same.


Re: help me please.. scripr error - Eth - 15.09.2014

the SetPlayerPos is very wrong!
pawn Код:
SetPlayerPos(playerid,X,Y,Z);
here is an example:
pawn Код:
SetPlayerPos(playerb, RandomAPrison[rand][0], RandomAPrison[rand][1],RandomAPrison[rand][2]);
do that for the both SetPlayerPos and it will fix all the warnings,,
and about the
pawn Код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
make sure that the forward is: forward OnPlayerShootPlayer(Shooter,Target,Float:HealthLos t,Float:ArmourLost)
to Fix that problem, download the lastes include here:
https://sampforum.blast.hk/showthread.php?pid=937824#pid937824