SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 25/04/2018, 02:48 PM   #1
enzulikeS
Big Clucker
 
Join Date: Jan 2018
Posts: 199
Reputation: 2
Default D:\server\gamemodes\ExtremeGame.pwn(22326) : error 035: argument type mismatch (argument 2)

Code:
CMD:work(playerid, params[])
{
	if(PlayerInfo[playerid][pJob] == 0) return SS(playerid, -1, "Nu ai nici un job / job-ul detinut de tine nu necesita aceasta comanda", "You don't have a job or your job don't need this command");
	if(IsPlayerInAnyVehicle(playerid)) return SS(playerid, -1, "Coboara din vehicul", "Get out from the vehicle");
	if(Working[playerid] != 0 || WorkCP[playerid] != 0) return SS(playerid, -1, "Deja lucrezi", "You are already working");
	switch(PlayerInfo[playerid][pJob]){
		case 5:{
//			if(GetPlayerInterior(playerid)) != 0 || GetPlayerVirtualWorld(playerid) != 0 return SS(playerid, -1, "Nu poti munci pentru ca te afli intr-un virtual world / interior.","You can't work because you are in a virtual world / interior");
			if(!IsPlayerInRangeOfPoint(playerid, 10.0, 2113.4565,-1771.3867,13.3937)){
				SCM(playerid, COLOR_LIGHTRED2, "Nu te afli in locul potrivit pentru a incepe munca, ti-a fost setat un checkpoint");
				SetPlayerCheckpoint(playerid, 2113.4565,-1771.3867,13.3937, 10.0);
				CP[playerid] = 43;
				return 1;
			}
			if(PlayerInfo[playerid][pCarLic] == 0) return SCM(playerid, -1, "Nu ai licenta driving");
			Working[playerid] = 1;
			new veh;
			switch(PlayerInfo[playerid][pPizzaSkill]) {
				case 1..2: veh = 411;
				case 3..5: veh = 411;
				case 6: veh = 411;
			}
			WorkVehicle[playerid] = CreateVehicle(veh, 2113.4565,-1771.3867,13.3937,88.0363, -1, -1, 100);
			Gas[WorkVehicle[playerid]] = 100;
			PutPlayerInVehicleEx(playerid, WorkVehicle, 0);

			WorkCP[playerid] = 1;
			new j = random(housess)+1;
			if(j == 0) j = 1;
			SetPlayerCheckpoint(playerid, HouseInfo[j][hEntrancex],HouseInfo[j][hEntrancey],HouseInfo[j][hEntrancez], 7.0);
		}
	}
	return 1;
}
the one marked with red is the error, how to fix it?
D:\server\gamemodes\ExtremeGame.pwn(22326) : error 035: argument type mismatch (argument 2)
enzulikeS is offline   Reply With Quote
Old 25/04/2018, 03:37 PM   #2
ItsRobinson
Big Clucker
 
ItsRobinson's Avatar
 
Join Date: Sep 2017
Posts: 111
Reputation: 21
Default Re: D:\server\gamemodes\ExtremeGame.pwn(22326) : error 035: argument type mismatch (argument 2)

PutPlayerInVehicleEx(playerid, WorkVehicle[playerid], 0);
__________________
EX-

ItsRobinson is offline   Reply With Quote
Old 25/04/2018, 03:38 PM   #3
enzulikeS
Big Clucker
 
Join Date: Jan 2018
Posts: 199
Reputation: 2
Default Re: D:\server\gamemodes\ExtremeGame.pwn(22326) : error 035: argument type mismatch (argument 2)

Quote:
Originally Posted by ItsRobinson View Post
PutPlayerInVehicleEx(playerid, WorkVehicle[playerid], 0);
ty, got fixed
enzulikeS 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
C:\Users\Lirbo\Desktop\Roleplay\gamemodes\ERP.pwn( 19) : error 035: argument type mismatch (argument 1) Lirbo Scripting Help 2 12/12/2014 02:51 PM
error 35: Argument Type Mismatch (argument 2) Forbidden Name System Stoyanov Scripting Help 2 01/11/2014 08:50 PM
error 035: argument type mismatch (argument 2) [Using MySQL R7/R8 With Cache] viveka27 Scripting Help 1 21/05/2013 03:31 PM
[SOLVED]error 035: argument type mismatch (argument 1) KoczkaHUN Help Archive 0 28/04/2011 12:49 PM


All times are GMT. The time now is 09:47 PM.


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