SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 03/01/2020, 05:39 PM   #1
Eyex
Little Clucker
 
Join Date: May 2019
Posts: 16
Reputation: 0
Default 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
Eyex is offline   Reply With Quote
Old 03/01/2020, 05:52 PM   #2
bugheada
Little Clucker
 
Join Date: Jul 2012
Posts: 25
Reputation: 0
Default Re: Error Problem

can you send more code from line 4129 ( all function ) ?
bugheada is offline   Reply With Quote
Old 03/01/2020, 05:55 PM   #3
Eyex
Little Clucker
 
Join Date: May 2019
Posts: 16
Reputation: 0
Default 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 szivecskm " );

//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.
Eyex is offline   Reply With Quote
Old 03/01/2020, 06:04 PM   #4
bugheada
Little Clucker
 
Join Date: Jul 2012
Posts: 25
Reputation: 0
Default Re: Error Problem

delete this line ? its array but without name of variable ?
bugheada is offline   Reply With Quote
Old 03/01/2020, 06:09 PM   #5
Eyex
Little Clucker
 
Join Date: May 2019
Posts: 16
Reputation: 0
Default Re: Error Problem

Write example please

= 0; ?

[playerid] ?
Eyex is offline   Reply With Quote
Old 03/01/2020, 06:11 PM   #6
bugheada
Little Clucker
 
Join Date: Jul 2012
Posts: 25
Reputation: 0
Default Re: Error Problem

delete [playerid] = 0; or add XXX[playerid] = 0; and replace XXX by you defined variable
bugheada is offline   Reply With Quote
Old 03/01/2020, 06:30 PM   #7
Eyex
Little Clucker
 
Join Date: May 2019
Posts: 16
Reputation: 0
Default 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?
Eyex is offline   Reply With Quote
Old 03/01/2020, 06:57 PM   #8
cipi89
Little Clucker
 
Join Date: Sep 2018
Posts: 23
Reputation: 3
Default 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.
cipi89 is offline   Reply With Quote
Old 04/01/2020, 07:59 PM   #9
Eyex
Little Clucker
 
Join Date: May 2019
Posts: 16
Reputation: 0
Default Re: Error Problem

Yes. I deleted and dropped another bug in a line of code
Eyex is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error 032 problem aragon3 Scripting Help 1 18/09/2016 07:08 PM
Run time error 19: "File or function is not found" error problem SaVage96 Server Support 4 30/05/2015 12:30 PM
PROBLEM:Pawn Compile problem, ERROR MoroccanEyes Scripting Help 15 13/03/2015 11:23 AM
Problem with: error 008 and error 029 The God Scripting Help 2 13/12/2012 11:30 AM
1 error problem (+REP) dundolina Scripting Help 22 24/07/2012 06:53 PM


All times are GMT. The time now is 11:46 PM.


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