SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Scripting Help (https://forum.sa-mp.com/forumdisplay.php?f=12)
-   -   Error Problem (https://forum.sa-mp.com/showthread.php?t=671583)

Eyex 03/01/2020 05:39 PM

Error Problem
 
Hy guys. I dont work this gamemode. Error problem how to fix? please help

Code:

C:\Users\Eyex\Desktop\West\gamemodes\West.pwn(3033) : warning 202: number of arguments does not match definition
C:\Users\Eyex\Desktop\West\gamemodes\West.pwn(3033) : warning 202: number of arguments does not match definition
C:\Users\Eyex\Desktop\West\gamemodes\West.pwn(3034) : warning 202: number of arguments does not match definition
C:\Users\Eyex\Desktop\West\gamemodes\West.pwn(3034) : warning 202: number of arguments does not match definition
C:\Users\Eyex\Desktop\West\gamemodes\West.pwn(3035) : warning 202: number of arguments does not match definition
C:\Users\Eyex\Desktop\West\gamemodes\West.pwn(3035) : warning 202: number of arguments does not match definition
C:\Users\Eyex\Desktop\West\gamemodes\West.pwn(3036) : warning 202: number of arguments does not match definition
C:\Users\Eyex\Desktop\West\gamemodes\West.pwn(3036) : warning 202: number of arguments does not match definition
C:\Users\Eyex\Desktop\West\gamemodes\West.pwn(3038) : warning 202: number of arguments does not match definition
C:\Users\Eyex\Desktop\West\gamemodes\West.pwn(3038) : warning 202: number of arguments does not match definition
C:\Users\Eyex\Desktop\West\gamemodes\West.pwn(3039) : warning 202: number of arguments does not match definition
C:\Users\Eyex\Desktop\West\gamemodes\West.pwn(3039) : warning 202: number of arguments does not match definition
C:\Users\Eyex\Desktop\West\gamemodes\West.pwn(4129) : error 029: invalid expression, assumed zero
C:\Users\Eyex\Desktop\West\gamemodes\West.pwn(4129) : warning 215: expression has no effect
C:\Users\Eyex\Desktop\West\gamemodes\West.pwn(4129) : error 001: expected token: ";", but found "]"
C:\Users\Eyex\Desktop\West\gamemodes\West.pwn(4129) : error 029: invalid expression, assumed zero
C:\Users\Eyex\Desktop\West\gamemodes\West.pwn(4129) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664                          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

4129 line on: [playerid] = 0; Please help

bugheada 03/01/2020 05:52 PM

Re: Error Problem
 
can you send more code from line 4129 ( all function ) ?

Eyex 03/01/2020 05:55 PM

Re: Error Problem
 
Quote:

public OnPlayerConnect(playerid)
{
if( IsPlayerNPC( playerid )) return 1;

if(restart == 1) return Kick(playerid);

PlayAudioStreamForPlayer(playerid, "http://ddl2.data.hu/get/0/9583843/Robin_Schulz_-_Sugar_feat._Francesco_Yates_OFFICIAL_MUSICVIDEO.m p3");

//if( Egyezik( Nev( playerid ), "Sean Rourke" ) ) return BanEx( playerid, "Matteo szivecském :)" );

//sobcheck[playerid] = false;

Szoliban[playerid] = 0;

frekvencia[playerid] = 0;

AdminSzoliban[playerid] = 0;

meloxon[playerid] = 0;

tulsokkaja[playerid] = 0;

ehes[playerid] = 0;

ipban[playerid] = 0;

ModeratorSzoliban[playerid] = 0;

4129 [playerid] = 0;


4129 line this a function.

bugheada 03/01/2020 06:04 PM

Re: Error Problem
 
delete this line ? its array but without name of variable ?

Eyex 03/01/2020 06:09 PM

Re: Error Problem
 
Write example please

= 0; ?

[playerid] ?

bugheada 03/01/2020 06:11 PM

Re: Error Problem
 
delete [playerid] = 0; or add XXX[playerid] = 0; and replace XXX by you defined variable

Eyex 03/01/2020 06:30 PM

Re: Error Problem
 
Sorry i try but dont work. defined variable. sorry i'm just starting out so i didn't understand the variation which definite variation should i put there?

cipi89 03/01/2020 06:57 PM

Re: Error Problem
 
See how all these lines have something in front of '[playerid]':
Code:

//sobcheck[playerid] = false;

Szoliban[playerid] = 0;

frekvencia[playerid] = 0;

AdminSzoliban[playerid] = 0;

meloxon[playerid] = 0;

tulsokkaja[playerid] = 0;

ehes[playerid] = 0;

ipban[playerid] = 0;

ModeratorSzoliban[playerid] = 0;

Line 4129:
Code:

[playerid] = 0;
That line gives you error since '[playerid]' isn't defined variable and isn't doing anything in your code either so just delete the line and it'll be fine.

If you didn't touch anything in script before that error just delete it, if you did tho there's a chance you deleted the name of variable that was supposed to go there, so if you did i can't help you there, the only solution I got for you right now is to delete line 4129.

Eyex 04/01/2020 07:59 PM

Re: Error Problem
 
Yes. I deleted and dropped another bug in a line of code


All times are GMT. The time now is 04:16 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.