help me please.. scripr error
#1

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

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

Код:
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)
Reply
#4

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)